axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Supun Kamburugamuva" <>
Subject Re: Accessing Services.xml from within a running service?
Date Sun, 12 Oct 2008 04:51:13 GMT
Hi Tony,

The values in the services.xml are stored as parameters in the axis2_svc_t.
You can fetch the current axis2_svc_t from the msg_ctx_t. Then you can use
that to extract the parameters from the services.xml.The custom entries are
stored as axutil_param_t in the axis2_svc_t. Please note that you can only
put custom entries to the services.xml as "parameter" values.


On Fri, Oct 10, 2008 at 12:47 AM, Tony Hoyt <> wrote:

> I've been toying with Axis2/C lately in an attempt to prototype it for a
> possible service but, I've hit a non-critical snag.
> I wish to use the services.xml file to contain some custom parameters, but
> I haven't found a way to access that information within a running service.
>  I don't wish to load the data manually unless I'm forced to.  I initially
> was under the impression I could just ask Axis2 to give me the information.
> Searching the net and nonamely, this mailing list, I've seen at least one
> post that pointed towards the following headers
> 1. axis2_svc_ctx.h
> 2. axis2_svc.h
> And while they seem to contain the objects I would use to access the data,
> new instances of the objects don't seem to natively contain the data.  Can
> anyone provide a simple example of how this is supposed to be done?  Thanks.
>  Tony
> "Opportunities multiply as they are seized." - Sun Tzu
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Software Engineer, WSO2 Inc

View raw message