axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hatim Daginawala" <Hatim.Daginaw...@argodata.com>
Subject RE: Service client options to set custom HTTP headers
Date Tue, 02 Sep 2008 20:26:51 GMT
You mean, if I add headers using 
axis2_options_set_http_headers(options, env, http_header_list);
I shouldn't have to free http_header_list?

That causes memory leaks in my application...

-----Original Message-----
From: Damitha Kumarage [mailto:damitha23@gmail.com] 
Sent: Saturday, August 30, 2008 11:50 AM
To: Apache AXIS C Developers List
Subject: Re: Service client options to set custom HTTP headers

Hatim Daginawala wrote:
> At what point will these headers get freed and who will be responsible
> for freeing them?
>
> Currently, I add http headers right before
axis2_svc_client_send_receive
> and free them right after axis2_svc_client_send_receive
>   
Currently headers are added into a array list as axiom nodes. When these

headers are added into the main header node they are removed from the 
array list. When envelope is freed these headers nodes are get freed(Am 
I right here?) . So why you need to free them from your client?.

Even the array list is get freed in svc_client_free function.
thanks,
Damitha
> Thanks
>
> -----Original Message-----
> From: Danushka Menikkumbura [mailto:danushka@wso2.com] 
> Sent: Friday, August 29, 2008 9:49 AM
> To: Apache AXIS C Developers List
> Subject: Re: Service client options to set custom HTTP headers
>
>
>   
>> But then the user need to create axis2_http_header_t instances. Can
we
>>     
>
>   
>> use an string key value pair and covert them to the header type 
>> internally?
>>
>>     
> No he doesn't have to. The interface call accepts the name and the
value
>
> and it in turn creates the header instance.
>
> The interface call :
> axis2_options_add_custom_http_header(
>         axis2_options_t*    options,
>         const axutil_env_t*    env,
>         const axis2_char_t*    name,
>         const axis2_char_t*    value);
>
> Danushka
>
>   


-- 
__________________________________________________________________

Damitha Kumarage
http://people.apache.org/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org



---------------------------------------------------
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message