You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by "Johannsmeier, Dieter (A-GDFI-SE5)" <di...@autovision-gmbh.com> on 2013/01/03 17:15:50 UTC
Parameters in services.xml (Axis2c 1.6.0)
Hello all,
I have some questions about parameters in services.xml.
As I right understand I can extend this file with an additional
parameter
But how can I get the content of this parameter ( or any parameter)
I call axis2_msg_ctx_get_property(msg_ctx, env, MyProperty) within my
skeleton invoke function, but only a null pointer is returned.
Additionally I need this value at the init/init_with conf function. How
can I do that? There is no msg_ctx in the parameter list.
Any idea?
Thank you very much in advance for your help
Dieter Johannsmeier
Software Engineer
Re: Parameters in services.xml (Axis2c 1.6.0)
Posted by Nandika Jayawardana <ja...@gmail.com>.
You can access the service object within init_with_conf method by using
axis2_conf_get_svc method. Once you have svc,you can get the parameter
list. From parameter list, you should be able to access the parameter.
Check the header files axis2_conf.h and axis2_svc.h
Regards
Nandika
On Thu, Jan 3, 2013 at 9:45 PM, Johannsmeier, Dieter (A-GDFI-SE5) <
dieter.johannsmeier1@autovision-gmbh.com> wrote:
> **
>
> Hello all,
>
> I have some questions about parameters in services.xml.
>
> As I right understand I can extend this file with an additional parameter
>
> But how can I get the content of this parameter ( or any parameter)
>
> I call axis2_msg_ctx_get_property(msg_ctx, env, MyProperty) within my
> skeleton invoke function, but only a null pointer is returned.
>
> Additionally I need this value at the init/init_with conf function. How
> can I do that? There is no msg_ctx in the parameter list.
>
> Any idea?
>
> Thank you very much in advance for your help
>
> *******Dieter Johannsmeier*
>
> Software Engineer
>