Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

WSDL soap:header with java

$
0
0

hi everyone:

 

I am encountering a problem when generating java stub from a wsdl using java.

 

Basically,

 

I have a binding in WSDL like this:

 

  <binding name="Connection_Operations" type="tns:Connection_Operations">

    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

    <operation name="Logout">

      <soap:operation soapAction="function=Logout"/>

      <input>

        <soap:body use="literal"/>

        <soap:header message="tns:SecureConnection" part="session" use="literal">

        </soap:header>

      </input>

      <output>

        <soap:body use="literal"/>

      </output>

    </operation>

</binding>

 

And the operation is deinfed as this:

 

    <operation name="Logout">

      <input message="tns:Logout_Input"/>

      <output message="tns:Logout_Output"/>

    </operation>

 

The input message is deinfed as:

 

  <message name="Logout_Input">

  </message>

 

When I generated the java soap stub for the logout, "session" has no input parameter, so I have no way to set the soapHeader information.

 

how I can add this variable to the header?


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>