Navigation bar
  Start Previous page
 27 of 109 
Next page End Contents  

FYP Final Report v1.0.0
Copyright and All Rights Reserved To: Pee-Lo Team @2003/04
27
Line
Codes
1
<?xml version="1.0" encoding="utf-8"?>
2
3...N
<types>
    <s:schema elementFormDefault="qualified"
      <s:import namespace="http://www.w3.org/2001/XMLSchema" />
      <s:element name="ShowHealthCareInfo">
        <s:complexType />
      </s:element>
      <s:element name="ShowHealthCareInfoResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="ShowHealthCareInfoResult"
type="s0:HealthCare" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="HealthCare">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="strHCID" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCName" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCURL" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCEmail" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCMailAddr" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCPhone" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCPostcode" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCState" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCCity" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCCountry" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="strHCError" type="s:string" />
        </s:sequence>
      </s:complexType>
…//more codes but truncated…
Snippet 2: WSDL File Codes
In Snippet 2, Line 1 provides us the XML header and its encoding format.  Line 2 is all the
‘grammars’ used to reference the WSDL file’s content.  A namespace is also provided to this file to
make this file unique among others of similar type.  Line 1 and 2 are known to be the ‘must have’
codes to create any WSDL files.  Line 3…N however, is the bulk of the code where the actual
description of the contract begins.  It is purely in XML form.  It actually declares the type of
elements. 
3.4.2 SOAP
XML is a simple way of transferring data (and preserves the ‘meaning’ of the data) – all sorts of
data – across a network or the Internet.  Because XML is just plain text, it can be sent anywhere
that plain HTML can.  This means XML can go through even firewalls where all these while the
more established technology like RPC can’t.  This piece of knowledge is important in explaining
what SOAP is.
SOAP or Simple Object Access Protocol as it implies, is a way to easily access objects across a
network.  That particular object can be anything; from an application to a stock quote or weather
reports.  In short, SOAP is a protocol that allows two objects regardless of who and where they are
http://www.purepage.com Previous page Top Next page