You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by "Cid, Jose" <Jo...@avocent.com> on 2005/06/18 04:15:48 UTC
Access to soap response header
How does one get access to the soap response header?
For example, given the following response
HTTP/1.1 200 OK
Date: Sat, 18 Jun 2005 01:27:42 GMT
Server: Jetty/4.2.12 (Windows 2000/5.0 x86 java/1.4.2_06)
Set-Cookie: JSESSIONID=1q71jfkx7f67w;path=/dsview
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<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:sessionHeader
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0"
xmlns:ns1="urn:common:webservices:server:ce:com">
<ns1:credentials>
<ns1:sessionId>1q71jfkx7f67w</ns1:sessionId>
<ns1:username>admin</ns1:username>
<ns1:password>admin</ns1:password>
</ns1:credentials>
</ns1:sessionHeader>
</soapenv:Header>
<soapenv:Body>
<authenticateResponse
xmlns="urn:schema:sessionMgmt:webservices:server:ce:com">
<ns2:timestamp
xmlns:ns2="urn:common:webservices:server:ce:com">2005-06-18T01:27:47.089
Z</ns2:timestamp>
<ns3:version
xmlns:ns3="urn:common:webservices:server:ce:com">1.0</ns3:version>
</authenticateResponse>
</soapenv:Body>
</soapenv:Envelope>
I would like to pull the "sessionId" from this response? I'm currently
using axis c++ 1.4 as client.
jose