I need to make a correction to my previous e-mail.

By specifying a namespace here:

>     <soap:header use="literal" required="true"
>      message="tns:SessionIdHeader" part="session_id" namespace="tns"/>

It results in a new namespace - not what I want.

If I remove it, I get:

  Error in SOAP Header part definition: input part 'session_id' missing?

I finally resolved it.  I had to add a new type to the WSDL (I thought I could 
use the one from the XSD):

  <xsd:element name="SessionIdHdr" type="ns1:SessionId"/>

And then change this:

>  <wsdl:message name="SessionIdHeader">
>   <wsdl:part name="session_id" type="ns1:SessionId"/>
>  </wsdl:message>

to:

  <wsdl:message name="SessionIdHeader">
   <wsdl:part name="session_id" type="tns:SessionIdHdr"/>
  </wsdl:message>

Note that I called it "SessionIdHdr" to make it stand out.


Reply via email to