Remote References Schema for SOAP Literal  Locate

Example 5. Remote References Schema for SOAP Literal

<?xml version="1.0" encoding="UTF-8"?>
<schema elementFormDefault="qualified"
    targetNamespace="http://idoox.com/interface"
    xmlns="http://www.w3.org/2001/XMLSchema" 
    xmlns:tns="http://idoox.com/interface">
    <complexType name="serviceReference">
        <sequence>
            <element name="service" type="QName"/>
            <element name="wsdl" type="anyURI"/>
            <element minOccurs="0" name="instanceID" type="string"/>
            <element minOccurs="0" name="portTypeMappings" 
            type="tns:ArrayOfInterfaceMapping"/>
        </sequence>
    </complexType>
    <complexType name="ArrayOfInterfaceMapping">
        <sequence>
            <element maxOccurs="unbounded" minOccurs="0" 
            name="item" type="tns:interfaceMapping"/>
        </sequence>
    </complexType>
    <complexType name="interfaceMapping">
        <sequence>
            <element name="portType" type="QName"/>
            <element name="className" type="string"/>
        </sequence>
    </complexType>
    <element name="instance">
        <annotation>
            <documentation> this is the SOAP header schema this SOAP header
                SHOULD have soap-env:mustUnderstand set to "1" this header MUST
                be present at most once in any message </documentation>
        </annotation>
        <complexType>
            <choice>
                <element name="id" type="string"/>
                <element name="setId" type="string"/>
                <element name="notFound" type="string"/>
            </choice>
        </complexType>
    </element>
</schema>