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

See Also

Reference

SPROXY.EXE: XML Web Service Proxy Generator