Presentation is loading. Please wait.

Presentation is loading. Please wait.

Agenda 1.WSDL & XML Schema. 10200341 100347 3400 491 100 34... Astronomicko-geofyzikálne observatórium, 920 01 Modra An Order.

Similar presentations


Presentation on theme: "Agenda 1.WSDL & XML Schema. 10200341 100347 3400 491 100 34... Astronomicko-geofyzikálne observatórium, 920 01 Modra An Order."— Presentation transcript:

1 Agenda 1.WSDL & XML Schema

2 10200341 100347 3400 491 100 34... Astronomicko-geofyzikálne observatórium, 920 01 Modra An Order

3 Service 1: GetCustomerDetails Input: HTTP POST to http://crmserver.acme.org/custinfo 100347 Output: HTTP data returned 100347 CORP GOLD Fakulta matematiky, fyziky a informatiky UK Mlynská dolina, 84248 Bratislava OK

4 CustomerService operation: GetCustomerInformation Input: 100347 Output: 100347 CORP GOLD Fakulta matematiky, fyziky a informatiky UK Mlynská dolina, 84248 Bratislava OK

5 WSDL Web Services Description Language describes format of messages received and sent by the service –at abstract level (messages, operations, port types) –at concrete level (bindings, ports, services) optionally specifies also policies –e.g. “this service requires authentication done by WS- Security, specifically X.509 certificates” –specified in WS-PolicyAttachment

6 WSDL: abstract description interface (port type) consists of operations operation consists of messages –input, [output], [fault(s)] message consists of parts part is specified as an element or a type in XML Schema

7

8 CustomerService operation: GetCustomerInformation Input: 100347 Output: 100347 CORP GOLD Fakulta matematiky, fyziky a informatiky UK Mlynská dolina, 84248 Bratislava OK

9 ... <wsdl:part name="CustomerInformation“ element="c:CustomerInformation"/>

10 XML Schema schema – a document that describes a set of compliant XML documents (instances of this schema) describes elements and their attributes (using types) types are: –simple (attributes and text-only elements) –complex (elements with subelements and/or attributes) simple types: –predefined –derived (e.g. by restriction) complex types are defined by: –attributes and/or subelements (list, cardinality, default values,...) –extension (≈ inheritance) –...

11 XML Schema (2) simple types examples string, normalizedString, token base64Binary hexBinary integer [non]positiveInteger [non]negativeInteger [unsigned][long|int|short|byte] decimal, float, double boolean dateTime, date, time duration gYear, gYearMonth, gMonth, gMonthDay, gDay Name QName NCName anyURI language ID, IDREF, IDREFS, ENTITY, ENTITIES, NOTATION, NMTOKEN, NMTOKENS

12 XML Schema (3) Nescafé 167 Jacobs 213

13 <xsd:schema elementFormDefault="qualified" targetNamespace="http://xml.uniba.sk/is/customer" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

14 WSDL: concrete description binding –specifies concrete protocol (SOAP 1.1, HTTP, MIME) –specifies details, e.g. for SOAP 1.1: how parts are mapped to SOAP Headers and/or SOAP Body call style: document or rpc encoding: literal or encoded transport (e.g. HTTP, SMTP, JMS) service –subelements port that specify physical addresses (e.g. URLs) at which individual bindings are reachable

15 <wsdl:binding name="SOAPBinding“ type="tns:GetCustomerInformationPortType"> <soap:binding style="document“ transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://xml.uniba.sk/is/customer/GetCustomerInformation" /> <wsdl:port name=“CustomerServicePort“ binding="tns:SOAPBinding"> <soap:address location="http://localhost:2580/process/GetCustomerInformation"/>


Download ppt "Agenda 1.WSDL & XML Schema. 10200341 100347 3400 491 100 34... Astronomicko-geofyzikálne observatórium, 920 01 Modra An Order."

Similar presentations


Ads by Google