cancel
Showing results for 
Search instead for 
Did you mean: 

Working of a service from a WSDL

Former Member
0 Kudos

Hi

I would like to know the procedure, as in the internal working of web service/enterprise service.

Once a service is created , we get the WSDL URL. using the WSDL URL we can test the service or invoke the service. But what exactly happens when the WSDL URL is entered. ( in WS navigator) .Curious to know all the steps involved from entering the WSDL URL to the result page of the Service. Any ideas on gaining such knowledge or any documents will be of great help. Suggestions as to where I should start looking for such information.

Thanks

Vijay

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member181962
Active Contributor
0 Kudos

Hi Vijay,

We have a WSDL for web services.

A WSDL uniquely describes the signature of the web service.

What I mean by the signature of the web service is the input and output parameters.

When you enter the URL of the WSDL in the webservice navigator, it will retrive the request message structure based on its definition, along with an option to enter some value against the field name.

Once you enter the value in the fields provided, and click on the next button, then the web service will be executed in the place where it was implemented and get you back the response message.

This message will be displayed in your WS navigator screen.

IN plain layman terms, a WSDL is a black box which takes in some well defined inputs and get you some output based on the inputs that you provide.

Regards,

Ravi

Former Member
0 Kudos

WSDL is a document written in XML. The document describes a Web service. It specifies the location of the service and the operations (or methods) the service exposes.

tool builds the soap request as specified in the wsdl

and send that request to the specified destination

then the responce will be send back as soap response


sample soap request
POST /InStock HTTP/1.1
Host: <a href="www.example.org" TARGET="test_blank">www.example.org</a>
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

<soap:Body xmlns:m="http://www.example.org/stock">
  <m:GetStockPrice>
    <m:StockName>IBM</m:StockName>
  </m:GetStockPrice>
</soap:Body>

</soap:Envelope>

sample soap response
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

<soap:Body xmlns:m="http://www.example.org/stock">
  <m:GetStockPriceResponse>
    <m:Price>34.5</m:Price>
  </m:GetStockPriceResponse>
</soap:Body>

</soap:Envelope>

To know how it works internally u first have to understand what is wsdl and soap so learn in w3Scools.com

also see this

[http://www.soapui.org/gettingstarted/your_first_soapui_project.html]