Professional Documents
Culture Documents
Service Registry
Find Publish
Service
Service Provider
Requestor
Bind
Provider/Server
Client
Socket Socket
SOAP Messaging Format
<Envelope>
<Header>
</Header>
<Body>
</Body>
</Envelope>
Advantages Disadvantages
Has it own security and protocol know as Slow and consume more bandwidth due
WS Security to parsing the XML formatted
Can be written in any language and WSDL file does not have mechanism for
deploy to any platform discovering the service
Object define by WSDL can be WSDL file is not really human readable
autogenerated using certain tools
SOAP Category
RPC Style Document Style
Use method name and parameters Can be define without method
almost similar to REST-JSON
Message is sent as many elements
Message is sent as single document
Tightly coupled need to follow the rules
define in WSDL Message is loosely coupled
Message will keep the operation name Does not keep the operation name
Parameters are send as discrete values Parameters are send in XML format
The Web Service Definition Language
WSDL describe 3 informations:
- The location (URL) of the web service
- Methods/Functions and members that available in the web service
- Ways to access the methods
Sample of WSDL :
http://10.105.13.55/webServiceSOAP/Lecture.wsdl
WSDL Components
How to analyze .wsdl file?
- To find out the list of method look for:
definitions
<wsdl:operation name= > </wsdl:operation>
types
All the data types used by the Web service
- To find the parameter and return value together with datatype:
Find the <wsdl:input message:tns:request> && <wsdl:output
message Parameters and messages used by method message>
<wsdl:message name=refer_to_wsdl_input_or_output.>
<wsdl:part name=parameter1 type=xsd:> </wsdl:part>
portType Abstract interface definition each operation <wsdl:part name=parameter2 type=xsd:> </wsdl:part>
operation element defines a method signature </wsdl:message>
binding
Binds abstract methods to specific protocols To find the url of the web service :
Look at
<wsdl:service>
service
A service is a collection of ports.
<wsdl:port>
port A port is a specific method and its URI <wsdl:address location=http://webServiceSoap/soap.php>
</wsdl:port>
</wsdl:service>
Review back
1
4
2
3 5
7