Friday, March 12, 2010

AXIS2 Web Service Level Parameters

in the services.xml you need to define your parameters like below

<parameter locked="false" name="MY_PARAMETER_NAME">MY_PARAMETER_VALUE

In your Skel class you can get the value like that:

String paramValue = (String) MessageContext.getCurrentMessageContext().getParameter ("MY_PARAMETER_NAME");

No comments:

Post a Comment