You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Seb Wag <se...@gmail.com> on 2005/05/03 12:09:33 UTC

sessionID outHeader WSDD

I also have run into a problem using sessionID in soap header.
I want the sessionID to be in the soap:header not in the soap:body.
My WSDD looks like that:
...
<requestFlow>
<handler type="java:org.apache.axis.handlers.SimpleSessionHandler"/>
</requestFlow>
<responseFlow>
<handler type="java:org.apache.axis.handler.SimpleSessionHandler"/>
</responseFlow>

The answer of a Request looks like this:
<soapenv:Header>
<ns1:sessionID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" href="#id0"/>
</soapenv:Header>
<soapenv:Body>
...
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="soapenc:long">6713324205952170177</multiRef>
...
</soapenv:Body>

--->But I want it to look like that:
<soapenv:Header>
<ns1:sessionID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0"
xsi:type="soapenc:long">6713324205952170177</ns1:sessionID>
</soapenv:Header>

Like it is described in the german book of Thomas Bayer/Thilo
Frotschner/ Marc Teufel:
<a href="http://www.entwickler.com/buecher/axis">http://www.entwickler.com/buecher/axis</a>
on page 244-246

it has perhaps sth to do with the parameter outheader="true" but i
didn't find any helpful examples about this Problem.

thx a lot for your help
& sorry for my bad english
Sebastian