问题
I have stfw but I cannot find a simple / standalone way to create a webservice client in java.
Does anyone have a link/sample into this?
回答1:
How about using Axis2?
Just follow the quickstart guide and you should be on your way.
Here is another more descriptive guide
回答2:
soapUI is a great tool to test a Web Service. It is really simple to either create a server stub to test your client or just send client request to any Web Service.
回答3:
One of the most simple ways is to use apache cxf. There is a good documentation to create a client here. You will need java 5, not 1.4!
回答4:
I presume you're referring to a SOAP web service? For a RESTful web service in which requests are submitted via HTTP GET, you really don't need anything more than a web browser.
回答5:
You can use the AXIS WSDL2JAVA to generate the client stubs from the WSDL.
Also, you can program using the SAAJ.
来源:https://stackoverflow.com/questions/209385/java-webservice-client