I want to call a web service by sending a SOAP xml as an input and get back the same type of xml in the response. Is it possible to have constant SOAP xml and fill it up when we get a request and call web service?
Thanks in advance.
SCJP 5, SCWCD 5, SCDJWS 5
Author and all-around good cowpoke
posted 7 years ago
Is it possible to have constant SOAP xml and fill it up when we get a request and call web service?
Sure! It is in fact the easiest way to create a SOAP client since you don't have to mess with WSDL or a SOAP library. Naturally this only works for relatively simple requests where you dont need any of the WS-* security, signing, etc etc. capabilities.
You will need an example of a valid SOAP request message to this service which you can use as a template.