JAX-WS
******
Links
=====
- **Probably best to start here**: JAX-WS Maven Plugin,
:doc:`../maven/mvn-plugin-jax-ws`.
- `JAX-WS Reference Implementation Project`_
- `JAX-WS and SAAJ hits the java.net maven repository`_
- `JAX-WS Maven Plugin`_
- `Project Tango develops and evolves the codebase for Web Services Interoperability Technologies (WSIT)`_
- `Web Services Interoperability Technology (WSIT) Module`_
Download
========
Downloaded ``JAXWS2.1EA3_20061115.jar`` from
https://jax-ws.dev.java.net/ri-download.html.
Install
=======
Running:
::
java -jar c:\downloads\java.net\JAXWS2.1EA3_20061115.jar
installs ``jax-ws`` to the ``jaxws-ri`` sub-folder.
WS Import
=========
The ``wsimport`` tool is installed into:
::
bin\wsimport.bat
Maven 2
=======
Dependencies:
-------------
::
com.sun.xml.messaging.saaj
saaj-impl
1.3
com.sun.xml.bind
jaxb-impl
2.1.2
com.sun.xml.bind
jaxb-xjc
2.1.2
com.sun.xml.stream.buffer
streambuffer
0.2
com.sun.xml.ws
jaxws-rt
2.1EA2
javax.xml.ws
jaxws-api
2.1
stax
stax
1.2.0
Repository:
-----------
::
dev.java.net
dev.java.net-repo
https://maven-repository.dev.java.net/repository/
legacy
Code Sample
===========
AddNumbersClient.java_
::
import javax.xml.ws.WebServiceRef;
import service.myapp.com.mycompany.MyAppService;
import service.myapp.com.mycompany.MyAppServiceException;
import service.myapp.com.mycompany.MyAppServicePortType;
MyAppServicePortType port = new MyAppService().getMyAppServiceHttpPort();
String response = port.getClassificationSchemes();
.. _`JAX-WS Reference Implementation Project`: https://jax-ws.dev.java.net/
.. _`JAX-WS and SAAJ hits the java.net maven repository`: http://weblogs.java.net/blog/kohsuke/archive/2006/04/jaxws_and_saaj.html
.. _`JAX-WS Maven Plugin`: http://mojo.codehaus.org/jaxws-maven-plugin/
.. _`Project Tango develops and evolves the codebase for Web Services Interoperability Technologies (WSIT)`: https://wsit.dev.java.net/
.. _`Web Services Interoperability Technology (WSIT) Module`: http://websvc.netbeans.org/wsit/
.. _AddNumbersClient.java: https://jax-ws.dev.java.net/jax-ws-ea3/samples/fromwsdl/src/fromwsdl/client/AddNumbersClient.java