90 likes | 289 Views
Class Schedule. May 2 – Bob Gray: example May 5 May 6 May 7 May 9 May 12 May 14 May 16 May 19 – Projects May 20 – Projects May 21 – Projects May 23 – Projects May 26 – Projects May 28 – no class. April 7 (today) April 8 x-period – Max, Diego April 9 no class
E N D
Class Schedule May 2 – Bob Gray: example May 5 May 6 May 7 May 9 May 12 May 14 May 16 May 19 – Projects May 20 – Projects May 21 – Projects May 23 – Projects May 26 – Projects May 28 – no class April 7 (today) April 8 x-period – Max, Diego April 9 no class April 11 - Riley, Ian April 14 – Song, Josh April 15 – Greg, Saurabh April 16 – Jose, James April 18 - Ali April 21 - Guofei Jiang: RDF, DAML April 23 - Wayne Chung: JXTA April 25 April 28 April 30 – Valentino Crespi: examples
Lecture 5 Overview • SOAP overview • Homework discussion • VS status
The Web Services Problem • Can be any platform • Can be any programming language • Can be behind a firewall/proxy The current temperate is 32 degrees What’s the current temperature? SOAP Port 80 VB/Windows Firewall C++/Solaris
SOAP Goals • Implements an RPC • Allows User Defined Data Types • Utilize Existing Simple Standards (HTTP, XML) • Cross Platform (unlike DCOM) • Cross Language (unlike Java RMI) • Localization (English, Chinese, etc.) • Protocol Agnostic (HTTP, SMTP)
Message Request Example ( note the XML Schema) POST /glue HTTP/1.1Host: localhost Content-Type: text/xml; charset="utf-8"Content-Length: nnnnSOAPAction: ”Echo” <SOAP-ENV:Envelope xmlns:SOAP ENV="http://schemas.xmlsoap.org/soap/envelope/"SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><m:echoString xmlns:m=”Echo”><inputString xsi-type=“xsd:string”>Hello</inputString></m:echoString> </SOAP-ENV:Body></SOAP-ENV:Envelope>
Message Response Example HTTP/1.1 200 OKContent-Type: text/xml; charset="utf-8"Content-Length: nnnn<SOAP-ENV:Envelopexmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><SOAP-ENV:Body><m:echoStringResponse xmlns:m=”Echo”><return xsi-type=“xsd:string”>Hello</return></m:echoStringResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
SOAP References • SOAP in .NET • http://www.microsoft.com/mind/0100/soap/soap.asp • http://www.microsoft.com/mobile/developer/technicalarticles/pocketsoap.asp • http://msdn.microsoft.com/soap/
XML Schema See http://www.w3c.org/TR/xmlschema-0 Primer http://www.w3c.org/TR/xmlschema-1 Structures http://www.w3c.org/TR/xmlschema-2 Datatypes for authoritative information. Also Deitel, Visual Basic .NET series (Amazon.com)