Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 3890 invoked from network); 17 Jul 2008 14:52:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2008 14:52:23 -0000 Received: (qmail 40365 invoked by uid 500); 17 Jul 2008 14:52:22 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 40352 invoked by uid 500); 17 Jul 2008 14:52:22 -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 40341 invoked by uid 99); 17 Jul 2008 14:52:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 07:52:22 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.62.17.247] (HELO outbound.argodata.com) (216.62.17.247) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 Jul 2008 14:51:29 +0000 Received: from internal.argodata.com ([172.20.20.55]) by outbound.argodata.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 17 Jul 2008 09:51:29 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8E81C.988BCBBE" Subject: RE: Cannot retrieve http headers in 1.4 Date: Thu, 17 Jul 2008 09:51:29 -0500 Message-ID: <014C756DD244D34991AEE9B9CC54A62909BE5084@serv105.ARGO.LOCAL> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cannot retrieve http headers in 1.4 thread-index: AcjnNRh2cCEnIwvEQ0uNQU8GWQ/nKwA52qmQ From: "Hatim Daginawala" To: "Apache AXIS C User List" X-OriginalArrivalTime: 17 Jul 2008 14:51:29.0837 (UTC) FILETIME=[98AEA5D0:01C8E81C] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8E81C.988BCBBE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-NAIMIME-Disclaimer: 1 X-NAIMIME-Modified: 1 Thanks Supun, I appreciate it. =20 I will give it a go. =20 ________________________________ From: Supun Kamburugamuva [mailto:supun06@gmail.com]=20 Sent: Wednesday, July 16, 2008 6:14 AM To: Apache AXIS C User List Subject: Re: Cannot retrieve http headers in 1.4 =20 Hi Hatim, First sorry for the late reply. The way that you try to acquire the headers is not supported now. Instead there is a direct method in message context that give the list of headers. Your code up to getting the message context is correct. Then you need to call the method list =3D axis2_msg_ctx_get_http_output_headers(msg_ctx, env); This will give the list of http headers. (axutil_array_list_t containing pointers to axis2_http_header_t structures) Regards, Supun.. On Fri, Jul 11, 2008 at 1:38 AM, Hatim Daginawala wrote: Hi All, =20 I am using following calls to retrieve HTTP headers from the response and axis2_msg_ctx_get_property returns NULL =20 This works in AXIS2/C 1.3 but not in AXIS2/C 1.4, has anything changed?=20 =20 Any help will be appreciated. =20 Thank you. =20 =20 op_client =3D axis2_svc_client_get_op_client(svc_client, env); =20 msg_ctx =3D (axis2_msg_ctx_t *) axis2_op_client_get_msg_ctx (op_client, env, AXIS2_WSDL_MESSAGE_LABEL_OUT); =20 client_property =3D (axutil_property_t *)axis2_msg_ctx_get_property( msg_ctx, env, AXIS2_HTTP_CLIENT); =20 client =3D (axis2_http_client_t *)axutil_property_get_value ( client_property, env); =20 response =3D axis2_http_client_get_response (client, env); =20 list =3D axis2_http_simple_response_get_headers (response, env); =20 ________________________________ --------------------------------------------------- Confidentiality Notice: This electronic mail transmission is confidential,=20 may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system.=20 =20 ---------------------------------------------------=0AConfidentiality Not= ice: This electronic mail transmission is confidential, =0Amay be privil= eged and should be read or retained only by the intended=0Arecipient. If= you have received this transmission in error, please=0Aimmediately notif= y the sender and delete it from your system. ------_=_NextPart_001_01C8E81C.988BCBBE Content-Type: text/HTML; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-NAIMIME-Disclaimer: 1 X-NAIMIME-Modified: 1

Thanks Supun, I appreciate it.<= /o:p>

 

I will give it a go.

 


From: Supun Kamburugamuva [mailto:supun06@gmail.com]
Sent: Wednesday, July 16, = 2008 6:14 AM
To: Apache AXIS C User Lis= t
Subject: Re: Cannot retrie= ve http headers in 1.4

 

Hi Hatim,

First sorry for the late reply.

The way that you try to acquire the headers is not supported now. Instead= there is a direct method in message context that give the list of headers. Your= code up to getting the message context is correct. Then you need to call the m= ethod

list =3D axis2_msg_ctx_get_http_output_headers(msg_ctx, env);

This will give the list of http headers. (axutil_array_list_t containing pointers to axis2_http_header_t structures)

Regards,
Supun..

On Fri, Jul 11, 2008 at 1:38 AM, Hatim Daginawala <Hatim.Daginawala@argodata.c= om> wrote:

Hi All,

 

I am using following calls to retrieve HTTP headers from the response and axis2_msg_ctx_get_property returns NULL

 

This works in AXIS2/C 1.3 but not in AXIS2/C 1.4, has anything changed?

 

Any help will be appreciated.

 

Thank you.

 

 

op_client =3D axis2_svc_client_get_op_client(svc_client, env);

 

msg_ctx =3D (axis2_msg_ctx_t *) axis2_op_client_get_msg_ctx (op_client, env, AXIS2_WSDL_MESSAGE_LABEL_OUT);

 

client_property =3D (axutil_property_t *)axis2_msg_ctx_get_property( msg_ctx, env, AXIS2_HTTP_CLIENT);

 

client =3D (axis2_http_client_t *)axutil_property_get_value ( client_property, e= nv);

 

response =3D axis2_http_client_get_response (client, env);

 

list =3D axis2_http_simple_response_get_headers (response, env);=

 


---------------------------------------------------
Confidentiality Notice: This electronic mail transmission is confidential= ,
may be privileged and should be read or retained only by the intended
recipient. If you have received this transmission in error, please
immediately notify the sender and delete it from your system. =

 


---------------------------------------------------
=0AConfidentiality= Notice: This electronic mail transmission is confidential,
=0Amay b= e privileged and should be read or retained only by the intended
=0Are= cipient. If you have received this transmission in error, please
=0Ai= mmediately notify the sender and delete it from your system.

------_=_NextPart_001_01C8E81C.988BCBBE--