SOAP web service tutorial

Simple Object Access Protocol (SOAP) is a standard protocol specification for message exchange based on XML. Communication between the web service and client happens using XML messages.
A simple web service architecture have two components

  • Client
  • Service provider
SOAP web service tutorial

So as in above diagram,how client will communicate to service provider.So in order to communicate client must know some information for e.g.

  • Location of webservices server
  • Functions available,signature and return types of function.
  • Communication protocol
  • Input output formats

Service provider will create a standard XML file which will have all above information.So If this file is given to client then client will be able to access web service. This XML file is called WSDL.

What is WSDL?

WSDL stands for Web Service Description Language. It is an XML file that describes
the technical details of how to implement a web service, more specifically the URI,
port, method names, arguments, and data types. Since WSDL is XML, it is both
human-readable and machine-consumable, which aids in the ability to call and bind to
services dynamically.using this WSDL file we can understand things like,

  •     Port / Endpoint – URL of the web service
  •     Input message format
  •     Output message format
  •     Security protocol that needs to be followed
  •     Which protocol the web service uses

Ways to access web service:

There are two ways to access web service.
  • If Service provider knows client:If service provider knows its client then it will provide its wsdl to client and client will be able to access web service.
SOAP web services direct communication
  • Service provider register its WSDL to UDDI and client can access it from UDDI:UDDI stands for Universal Description, Discovery and Integration.It is a directory service. Web services can register with a UDDI and make themselves available through it for discovery.So following steps are involved.
    1. Service provider registers with UDDI.
    2. Client searches for service in UDDI.
    3. UDDI returns all service providers offering that service.
    4. Client chooses service provider
    5. UDDI returns WSDL of chosen service provider.
    6. Using WSDL of service provider,client accesses web service.
SOAP web services indirect communication using UDDI

In next post,we will see SOAP hello world example in java using eclipse.

44 Comments

  1. Dinesh Ayyapillai August 12, 2013
  2. uday August 15, 2013
  3. Ashok August 20, 2013
  4. Sushil September 4, 2013
  5. gopi September 9, 2013
  6. Awesome September 11, 2013
  7. madhu murthy September 14, 2013
  8. Vijaya October 16, 2013
  9. Naveen Chanda October 22, 2013
  10. Priyanka November 11, 2013
  11. abc November 11, 2013
  12. Vladislav November 13, 2013
    • Vladislav November 13, 2013
  13. LakshmaN November 15, 2013
  14. Shir December 5, 2013
  15. akash December 5, 2013
  16. Azmath December 18, 2013
  17. Suviga Belevendiran December 23, 2013
  18. jitesh kumar February 4, 2014
  19. vaibhav April 1, 2014
  20. Dan April 24, 2014
  21. krishna July 4, 2014
  22. shobha July 4, 2014
  23. Ram Krishna Dixit July 4, 2014
  24. Raju Ranjan Kumar September 11, 2014
  25. samba October 6, 2014
  26. kavita October 17, 2014
  27. KPPA December 18, 2014
  28. Manoj February 5, 2015
  29. Sagar Pudi April 28, 2015
  30. Rahul Chidrewar April 28, 2015
  31. justin April 28, 2015
  32. SK. Ashraf Hossain April 30, 2015
  33. Anie May 19, 2015
  34. nav July 9, 2015
  35. Phila September 2, 2015
  36. satyabratmahali November 12, 2015
  37. Bushra July 5, 2016
  38. Adarsh August 29, 2016
  39. Ssp September 6, 2016
  40. Sahana September 8, 2016
  41. Aniruddha September 21, 2016
  42. rajamohan March 17, 2017
  43. Easily June 5, 2017

Add Comment