Export (0) Print
Expand All

SPROXY Error SDL1027

headers with different namespaces than their parent operations are not supported.

SPROXY has encountered a <soap:header> with a different namespace than that specified in its parent operation. The namespaces must be the same.

Example

In the following example, the <soap:header> and its parent input operation specify different namespaces (in bold). This will trigger SDL1027.

<binding name="ValFrom1HeaderSoap" type="tns:ValFrom1HeaderSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
    <operation name="RetValFrom1Header">
      <soap:operation soapAction="http://tempuri.org/RetValFrom1Header" style="rpc" />
      <input>
        <soap:body use="encoded" namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
        <soap:header n1:required="true" message="tns:RetValFrom1HeaderHeader1" part="Header1" use="encoded" namespace="http://tempuri.org2/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:n1="http://schemas.xmlsoap.org/wsdl/" />
      </input>
      <output>
        <soap:body use="encoded" namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </output>
    </operation>
  </binding>

See Also

Community Additions

ADD
Show:
© 2014 Microsoft