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.

💻 Awesome Tech Resources:
  • Looking for ⚒️ tech jobs? Go to our job portal.
  • Looking for tech events? Go to tech events 🗓️ Calendar.️

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.


import_contacts

You may also like:

Related Posts

  • 04 August

    Spring Restful web services xml example

    This post is in continuation with web service tutorial (Part -10). In this tutorial,we are going to see Spring Restful web services xml example. Web service Tutorial Content: Introduction to web services Web services interview questions SOAP web service introduction RESTful web service introduction Difference between SOAP and REST web services SOAP web service example in […]

  • 26 June

    Difference between SOAP and REST web services in java

    We have already seen SOAP web services and RESTful web services in detail before. In this post, we are going to see differences between SOAP and REST web services. SOAP vs REST web services Parameter SOAP REST Acronym SOAP stands for simple object access protocol REST stands for REpresentational State Transfer Protocol vs Architectural style […]

  • Web services interview questions
    24 June

    Top 20 Web services interview questions

    Web services interview questions are most asked questions if you are applying for software developer role. In this post, we will see multiple web services interview questions. 1. What are web services? Web services are ways of communication between two application over network. It allows you to expose business logic using API. For example: Lets […]

  • Restful web services interview questions
    22 June

    Restful web services interview questions

    Restful web services are very popular now a days because it is very simple to implement and less time consuming. In this post, we are going to see restful web services interview questions with answers. 1. What is REST? REST is an architectural style which was brought in by Roy Fielding in 2000 in his […]

  • 15 April

    Spring Restful web services CRUD example

    In this post, we are going see Spring Restful web services CRUD example. Web service Tutorial Content: Introduction to web services Web services interview questions SOAP web service introduction RESTful web service introduction Difference between SOAP and REST web services SOAP web service example in java using eclipse JAX-WS web service eclipse tutorial JAX-WS web service […]

  • 29 March

    RESTful web services JAXRS CRUD example using jersey

    This post is in continuation with web service tutorial (Part -8). Introduction to web services Web services interview questions SOAP web service introduction RESTful web service introduction Difference between SOAP and REST web services SOAP web service example in java using eclipse JAX-WS web service eclipse tutorial JAX-WS web service deployment on tomcatCreate RESTful web […]

Comments

  1. Way do you say “is called WSDL”?
    In general REST web service provide WADL (Web Application Description Language)

  2. Your WSDL/UDDI description is very concise and understandable – thank you very much. I wish all tutorials were this clearly presented.

  3. Nice explanation. I was wondering a website, where all the wordings and explanations would be in simple language and easy to understand.

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.