1 / 22

WSDL Web Services Description Language

WSDL Web Services Description Language. History of Web Services. WSDL 1.1 was submitted as a W3C Note by Ariba, IBM and Microsoft in March 2001 , m erging 3 previous proposals : • Microsoft’s SOAP Contract Language (SCL) • Service Description Language

fox
Télécharger la présentation

WSDL Web Services Description Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WSDLWeb Services Description Language

  2. History of Web Services WSDL 1.1 was submitted as a W3C Note by Ariba, IBM and Microsoft in March 2001, merging 3 previous proposals: • Microsoft’s SOAP Contract Language (SCL) • Service Description Language • IBM’s Network Accessible Service Specification Language (NASSL)

  3. <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://calculator.me.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/"targetNamespace="http://calculator.me.org/" name="CalculatorWS"><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://calculator.me.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/"targetNamespace="http://calculator.me.org/" name="CalculatorWS"> <types> <xsd:schema> <xsd:import namespace="http://calculator.me.org/" schemaLocation="http://localhost:8080/CalculatorWS/CalculatorWS?xsd=1"/> </xsd:schema> </types> <message name="add"> <part name="parameters" element="tns:add"/> </message> <message name="addResponse"> <part name="parameters" element="tns:addResponse"/> </message> <portType name="CalculatorWS"> <operation name="add"> <input wsam:Action="http://calculator.me.org/CalculatorWS/addRequest" message="tns:add"/> <output wsam:Action="http://calculator.me.org/CalculatorWS/addResponse" message="tns:addResponse"/> </operation> </portType> <binding name="CalculatorWSPortBinding" type="tns:CalculatorWS"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <operation name="add"> <soap:operation soapAction=""/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="CalculatorWS"> <port name="CalculatorWSPort" binding="tns:CalculatorWSPortBinding"> <soap:address location="http://localhost:8080/CalculatorWS/CalculatorWS"/> </port> </service> </definitions>

  4. definitions

  5. service

  6. binding

  7. portType

  8. What is tns? • tns = “This NameSpace” • Look in the root element for namespace declarations: • <definitions ...xmlns:tns="http://calculator.me.org/".>

  9. message

  10. types

  11. schema

  12. schema

  13. schema

  14. SOAP Request

  15. SOAP Response

  16. Congratulations! • You can now read a WSDL documents and create SOAP messages!

  17. 코딩! • Make a Web Application, using AJAX, to order pizza. • The WSDLfile is located at: • http://samphire.dyndns.org:8080/PizzaWS/PizzaWS?WSDL • The Schema file is located at: • http://samphire.dyndns.org:8080/PizzaWS/PizzaWS?xsd=1

  18. --args –disable-web-security

More Related