On Sat, 2008-08-30 at 22:20 +0530, Damitha Kumarage wrote:
> 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?.

I think Hatim is talking about http_headers. They are not added as
axiom_nodes.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to