Its an XML file, but how is it used ? It works on request - response protocol. So is it just like an HTMML file ? When a browser requests a page, does server fetch SOAP xml file , convert it to HTML and send it to browser ?
When a browser send s request for a page, controller on server redirects that request for some page (If content is dynamically processed). Then some business logic in a java class (which implements interface) is processed and resulting output is sent back in HTML page.
When we are using SOAP, java interface method is specified as a node in XML file. So does it mean that instead of Java class, we will now be using this XML file only ?
I am confused, if SOAP protocol is an xml file, then how is it rendered to browser ?
I checked few links provided on Java Ranch, but it could not understand at what point is XML converted to HTML in SOAP protocol (request response)
Yes, the SOAP web service takes a SOAP request (xml) and returns a SOAP response (xml).
If WSDL location is known, use 'wsimport' command to generate necessary artifacts so your client can directly call those web service operations (methods) and get the result in Java types.
No need to parse the SOAP response.
SOAP is not an XML file - it's XML. Generally it is not saved to a file, but transferred between client and server over the network. It is generally used for server-to-server communication, so browsers are rarely involved, and even if they are, then there's no HTML.
When we are using SOAP, java interface method is specified as a node in XML file.
SOAP is language-agnostic, as is XML. It can be used RPC-style, in which case the method to be invoked would be part of the SOAP. But that would be a feature of a particular SOAP WS, not of SOAP itself.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop