Professional Documents
Culture Documents
Web Services Overview:: A Technical Introduction
Web Services Overview:: A Technical Introduction
A technical introduction
Schemas enable you to define your own XML syntax e.g. types or categories of elements
Facilitates parsing of XML documents
1: Namespaces
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<complexType name=“book">
<sequence>
<element ref="author“ type=“string” />
<element ref="title“ type=”string”/>
<element ref=“inStock“ type=“integer”/>
</sequence>
</complexType>
2: Type
</schema>
Web Services Architecture Overview
WSDL
interface –
CondorService
startJob(exec)
Site B
stopJob(exec)
Web Server
Site A
Client Condor
Service
CondorService.startJob(job)
SOAP Service 2
HTTP
Container
Web Service Description Language
Used to describe the functionality provided by a service and how to
communicate with it
<definitions
name=“JobSubmissionService”
targetNamespace=“urn:Condor”>
<types>
Definitions: service name, <complexType name=“Job”>
namespaces, schemas <sequence>
<element name=“input” type=“String”>
..
</sequence>
Types: description of data </complexType>
</types>
structures used
<message name=“StartJobRequest”>
Can be automatically generated!
<part name=“JobRequest” type=“Job” />
</message>
Messages: structure of messages
e.g.… Java2WSDL (Axis)
exchanged <portType name=“SubmissionPortType”>
<operation name=“StartJob”>
<input name=“StartJobRequest” type=“StartJobRequest” />
<output name = … >
PortType: set of operations </operation>
supported </portType>
HTTP header
<SOAP-ENV:Body>
<m:StartJobResponse xmlns:m="some-URI"> Response
<result>22.50</result>
</m:StartJobResponse>
</SOAP-ENV:Body>
SOAP and Firewalls?
Registry
Client Service
use
Developing Web Services
result = service.startJob(myJob);
Thank You!