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:[EMAIL PROTECTED] 
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:[EMAIL PROTECTED] 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to