• Post Reply Bookmark Topic Watch Topic
  • New Topic

using SOAP  RSS feed

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to understand how to use SOAP

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)

Thanks
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

There are many examples on the net.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!