Skip to main content

WSDL Differences for InterSystems IRIS SOAP Sessions

WSDL Differences for InterSystems IRIS SOAP Sessions

If the SOAPSESSION parameter is 1 for the web service, that affects the WSDL as follows:

  • Within the <binding> element, the <input> and <output> elements of each <operation> include the following additional subelement:

    <soap:header message="s0:IRISSessionHeader" part="CSPCHD" use="literal"/>
    

    For example:

    <operation name="Add">
        <soap:operation soapAction="https://www.mynamespace.org/WSDLSamples.BasicWS.Add" style="document"/>
        <input>
            <soap:body use="literal"/>
            <soap:header message="s0:IRISSessionHeader" part="CSPCHD" use="literal"/>
        </input>
        <output>
            <soap:body use="literal"/>
            <soap:header message="s0:IRISSessionHeader" part="CSPCHD" use="literal"/>
        </output>
    </operation>
    
  • The WSDL includes the following additional <message> element:

    <message name="IRISSessionHeader">
        <part name="CSPCHD" element="chead:CSPCHD"/>
    </message>
    
  • The <types> element includes the following additional item:

    <s:schema elementFormDefault="qualified" targetNamespace="https://www.intersystems.com/SOAPheaders">
        <s:element name="CSPCHD">
            <s:complexType>
                <s:sequence>
                    <s:element name="id" type="s:string"/>
                </s:sequence>
            </s:complexType>
        </s:element>
    </s:schema>
    
  • The namespace declarations include the following additional item:

    xmlns:chead="https://www.intersystems.com/SOAPheaders"
    
FeedbackOpens in a new tab