Skip to main content

Webservice @WebMethod

Posted by mriem on June 22, 2009 at 12:15 PM EDT

How do you tell the JAXWS runtime to expose a given method as a webservice method? Easy, use the @WebMethod annotation, see the Webservice Almanac page for more information.

Related Topics >>

Comments

how to tell the runtime not to include the method @webMethod(exclude= true) doesn't work it fails in wsgen when generating wsdl

Make sure you have the JAXWS servlet listener setup in your web.xml and it will know that you are already running it in a webserver.

How do you tell JAXWS not to use the built-in webserver (the one in JDK 6) when you're running your code in another webserver already (Jetty, or Tomcat) ?