• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

using SOAP

 
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic