...
Wiki Markup |
---|
{snippet:id=jaxws|lang=xml|url=http://svn.servicemix.codehaus.org/*checkout*/branches/servicemix-1.1/components/jaxws/src/test/resources/org/servicemix/components/jaxws/jaxws-in.xml} |
The JAX-WS service needs to be defined with JAX-WS annotations as following. The commercial at sign "@" is a shorthand notation which prevents the programmer from having to write a lot of boilerplate web service code. This annotation is described in JSR 181. Essentially, the @Webservice
notation says this code is a Web Service. When follows:
Wiki Markup |
---|
{snippet:id=jaxws|lang=java|url=http://svn.servicemix.codehaus.org/*checkout*/branches/servicemix-1.1/components/jaxws/src/test/java/org/servicemix/components/jaxws/AddNumbersImpl.java} |
The "@" annotation prevents the programmer from having to write a lot of boilerplate web service code. Essentially, @Webservice
is a shorthand notation that says this code is a Web Service. When processed by a processor that understands the notation, such as, the apt processor in Java 1.5, much of the Web service code is automatically generated for the programmer. This annotation is described in JSR 181.
Where Are the JAX WS Components
...