If the web service is relatively recent, you should be able to use the JAX-WS reference implementation that comes bundled with the standard JRE (since 1.6).
Usually you’d make JAX-WS client class generation a part of your build process, but a quick way to generate client classes to test the client is to use the wsimport command line utility that comes bundled with java. Just go to your terminal and write “wsimport [url to wsdl]”. You can pass the argument -Xnocompile to the wsimport command if you prefer to get java classes rather than compiled class files.
Assuming the import process works well (and has configured endpoints) you’ll end up with a folder in your working directory, containing java sources you can use to communicate with the web service. There’s a class for each defined service in the WSDL, those classes have methods that return instances of ports, and from there you should be able to invoke service methods like any old code.
Cheers, - hugi
// Hugi Thordarson
// s. 895-6688
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|