Showing posts with label web service parameter. Show all posts
Showing posts with label web service parameter. Show all posts

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");