I am new to webservices in general. I am trying to write a standalone Java client that can get a response from a web service.
I tried to find SO and Google, but now I have become more confused. Below are the links that I have examined in detail.
I have a url: http://api.something.com/remote/wsdl/SomeEncryptedText
I also have a SOAP request:
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AuthUsername>someName@someWhere.com</AuthUsername> <AuthPassword>mypassword</AuthPassword> <Sid>12121</Sid> <DynamicProductFeedsRequest xmlns="http://api.something.com/remote/SomeEncryptedText"> </DynamicProductFeedsRequest> </soap12:Body> </soap12:Envelope>
With this, can I write a standalone Java client that I would like to integrate with some kind of web application at a later stage?
From the previously reviewed resources, a wide selection of programs is offered: SoapUI, WSDL2Java, Apache Axis, Maven Plugin, JAX-WS, Apache CXF.
I used http://www.soapclient.com/soaptest.html in one of the SO answers mentioned above and I can get the perfect html / xml file on the browser.
Now I'm confused, on which software should I use? The information in the links is a bit in bits and pieces, which I can not compare with each other, since I do not know anything in SOA.
Can someone tell me the high-level steps in writing a standalone Java client that accepts a WSDL URL and SOAP request and gives me its output?
Please let me know if I have missed any information.
java soap wsdl web-services
oneworld
source share