NonStop SOAP User's Manual

NonStop SOAP Features and Functions
NonStop SOAP User’s Manual520501-012
4-42
Specifying Base64 Encoding
The bold text shows the XML schema type for Base64 encoded data.
Example 4-28. XML Schema
<xsd:complexType name="name">
<xsd:sequence>
<xsd:element name="first" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="middle" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="last" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="patient_data">
<xsd:sequence>
<xsd:element name="id" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<xsd:element name="age" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<xsd:element name="name" type="tns:name" minOccurs="1" maxOccurs="1"/>
<xsd:element name="binary_content" type="xsd:base64Binary"
minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>