Difference between revisions of "Axis2MessageContextDataProvider"
| Line 4: | Line 4: | ||
The context of the DataProvider object is [http://axis.apache.org/axis2/java/core/api/org/apache/axis2/context/MessageContext.html org.apache.axis2.MessageContext] | The context of the DataProvider object is [http://axis.apache.org/axis2/java/core/api/org/apache/axis2/context/MessageContext.html org.apache.axis2.MessageContext] | ||
| + | |||
| + | The class [http://axis.apache.org/axis2/java/core/api/org/apache/axis2/util/XMLUtils.html org.apache.axis2.utilXMLUtils ] has a number of methods for manipulating objects OM. | ||
| + | |||
| + | For example, OGNL you can use the following expression: | ||
| + | |||
| + | envelope.body.addChild (@org.apache.axis2.util.XMLUtils toom (# input.object.getDocumentElement ())) | ||
| + | |||
| + | to add body to the input Webservices | ||
Revision as of 09:04, 14 February 2012
The DataProvider Axis2MessageContextDataProvider Axis allows you to set objects to manipulate input / output for webservices.
The objects are used in Axis2 are OMElement.
The context of the DataProvider object is org.apache.axis2.MessageContext
The class org.apache.axis2.utilXMLUtils has a number of methods for manipulating objects OM.
For example, OGNL you can use the following expression:
envelope.body.addChild (@org.apache.axis2.util.XMLUtils toom (# input.object.getDocumentElement ()))
to add body to the input Webservices