Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI.

Similar presentations


Presentation on theme: "Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI."— Presentation transcript:

1 Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI

2 Can call a web service with HTML form via HTTP GET http://../MyGreeting.asmx/GreetingMethod?yourName=fred+bloggs Returns XML Hello there fred bloggs Clearly limited to simple variables and simple uses (e.g. testing)

3 SOAP Simple Object Access Protocol Supports two message patterns –Client sends to server –Request Response Interaction Allows the passing to and fro of structured data Based on XML

4 SOAP Requests and Responses Visual Studio.NET displays format of SOAP requests and responses SOAP sent via HTTP Data sent and received in SOAP Envelopes

5 SOAP Request: Tags of The SOAP Envelope … –this details standard schemas used … –this encapsulates data sent to web service method. … –the name and location of the web service method. string –the method’s input argument.

6 SOAP Response: Tags of The SOAP Envelope … –this details standard schemas used … –this encapsulates data returned by the web service method. … –the name and location of the web service method. string –Data returned from the method.

7 Serialisation of Objects and Arrays A powerful aspect of SOAP is its ability to pass sophisticated multivariate objects and arrays. To do so the object or array is split up into an ordered stream of respective data elements (i.e. serialised).

8 EXERCISE 7.1 –Simple greeting service EXERCISE 7.2 –Greeting method with multiple arguments –Consume web service EXERCISE 7.3 –Passing classes and objects –Hence soap serialisation

9 A Closer Look at WSDL Web Service Description Language An XML Schema that describes a class Hence has elements, attributes, facets, simple types and complex types Indicates of how to use web service Is used to create proxy classes to instantiate local objects representing the remote web services.

10 Some WSDL to describe method

11 WSDL to describe complex data The above represents the class ‘Person’ public class Person { public string name, address; public int age; public float height, weight; public char sex; }

12 Universal Description Discovery Integration (UDDI) Wed services must be discovered before they can be consumed Visual Studio.NET gives a directory of Web Services awaiting discovery


Download ppt "Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI."

Similar presentations


Ads by Google