XML Source
Volume 1: Issue 7: p16.
XML in Transit: Encoding Data
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<x:StorePicture xmlns:x="Some
URI">
<!-- SOAP has base64 built-in -->
<!-- xsi:type identifies the type of an element -->
<Picture xsi:type="SOAP-ENC:base64">
aG93IG5vDyBicm73biBjb3cNCg==
</Picture>
</x:StorePicture>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<!-- tns is the target namespace -->
<element name="comment" type="SOAP-ENC:string"/>
<element name="contactNumbers">
<complexType base="SOAP-ENC:Array>
<element name="phoneNumber"
type="xsd:string"/>
<anyAttribute/>
</complexType>
</element>
<element name="person">
<complexType>
<sequence minOccurs="0"
maxOccurs="1">
<element
name="name" type="xsd:string"/>
<element
name="comment" type="tns:comment"/>
</sequence>
<attribute name="href"
type="uriReference"/>
<attribute name="id"
type="ID"/>
<anyAttribute namespace="##other"/>
</complexType>
</element>