Hello,

I am trying to consume a Apache Axis (java) webservice which uses the
SimpleSessionHandler with SOAP headers.

=== SOAP EXAMPLE ===

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:sessionID
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" xsi:type="soapenc:long"
xmlns:ns1="http://xml.apache.org/axis/session"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">2550409648178592911</ns1:sessionID>

</soapenv:Header>
soapenv:Body>
<pingResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<pingReturn xsi:type="xsd:boolean">true</pingReturn>
</pingResponse>
</soapenv:Body>
</soapenv:Envelope>


=== END EXAMPLE ===

Now I would like to consume this webservice with CFMX 6.1 plus the
hotfix for webservices applied.

Normally when consuming webservices from java, I do
setMaintainSession(true). Now I would like to do the equivalent for
CFMX. Please note that I did try to use:

ws = CreateObject("webservices","path to wsdl");
auth = ws.authorize(user,pass);
header = ws.getResponseHeader("sessionId");

(header = "NOT FOUND")

But this does not seem to work. I also tried to:

ws._setProperty(CreateObject("java","javax.xml.rpc .Stub").SESSION_MAINTAIN_PROPERTY,
JavaCast("boolean",1));


Any ideas?

Thanks in advance,

Bolke