Difference between revisions of "Axis2MessageContextDataProvider"
| Line 8: | Line 8: | ||
For example, OGNL you can use the following expression: | For example, OGNL you can use the following expression: | ||
| + | <syntaxhighlight lang="java5"> | ||
| + | envelope.body.addChild (@org.apache.axis2.util.XMLUtils toom (#input.object.getDocumentElement())) | ||
| + | </syntaxhighlight> | ||
| − | + | to add body. | |
| − | |||
| − | to add body | ||
Revision as of 09:07, 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.