Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 62228 invoked from network); 18 Jun 2005 02:16:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jun 2005 02:16:16 -0000 Received: (qmail 46650 invoked by uid 500); 18 Jun 2005 02:16:15 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 46631 invoked by uid 500); 18 Jun 2005 02:16:14 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 46618 invoked by uid 99); 18 Jun 2005 02:16:14 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail.equinox.com (HELO sun-email.corp.avocent.com) (65.217.42.16) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2005 19:16:13 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C573AB.A4B49E4C" Subject: Access to soap response header Date: Fri, 17 Jun 2005 22:15:48 -0400 Message-ID: <4821D5B6CD3C1B4880E6E94C6E70913E0113440F@sun-email.corp.avocent.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Access to soap response header Thread-Index: AcVzq6RBkhExmyttTpepZRsvzk02kw== From: "Cid, Jose" To: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C573AB.A4B49E4C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable How does one get access to the soap response header? =20 For example, given the following response =20 =20 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=3D1q71jfkx7f67w;path=3D/dsview Content-Type: text/xml; charset=3Dutf-8 =20 =20 1q71jfkx7f67w admin admin =20 2005-06-18T01:27:47.08= 9 Z 1.0 =20 I would like to pull the "sessionId" from this response? I'm currently using axis c++ 1.4 as client. =20 jose ------_=_NextPart_001_01C573AB.A4B49E4C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
How = does one get=20 access to the soap response header?
 
For = example, given=20 the following response
 
 
HTTP/1.1 200=20 OK
Date: Sat, 18 Jun 2005 01:27:42 GMT
Server: Jetty/4.2.12 = (Windows=20 2000/5.0 x86 java/1.4.2_06)
Set-Cookie:=20 JSESSIONID=3D1q71jfkx7f67w;path=3D/dsview
Content-Type: text/xml;=20 charset=3Dutf-8
 
<?xml=20 version=3D"1.0" encoding=3D"UTF-8"?>
<soapenv:Envelope=20 xmlns:soapenv=3D"http://schemas.xmlsoap= .org/soap/envelope/"=20
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchem= a"=20
xmlns:xsi=3D"'>http://www.w3.org/20= 01/XMLSchema-instance">
 
<soapenv:Header>
  = <ns1:sessionHeader
       &nbs= p; =20 soapenv:actor=3D"http://schemas.xmlsoa= p.org/soap/actor/next"=20
       &nbs= p; =20 soapenv:mustUnderstand=3D"0"=20 xmlns:ns1=3D"urn:common:webservices:server:ce:com">
   =20 <ns1:credentials>
    =20  <ns1:sessionId>1q71jfkx7f67w</ns1:sessionId>
       =20 <ns1:username>admin</ns1:username>
       =20 <ns1:password>admin</ns1:password>
    </ns1:credentials&g= t;
  = </ns1:sessionHeader>
</soapenv:Header>
 
<soapenv:Body>
<authenticateResponse=20 xmlns=3D"urn:schema:sessionMgmt:webservices:server:ce:com">
<ns2:timestamp=20 xmlns:ns2=3D"urn:common:webservices:server:ce:com">2005-06-18T01:27:47= .089Z</ns2:timestamp>
<ns3:version=20 xmlns:ns3=3D"urn:common:webservices:server:ce:com">1.0</ns3:version= >
</authenticateResponse>
</soapenv:Body>
</soapenv:Envelope>
 
I = would like to pull=20 the "sessionId" from this response? I'm currently using axis c++ 1.4 as=20 client.
 
jose
------_=_NextPart_001_01C573AB.A4B49E4C--