Difference between revisions of "Axis2MessageContextDataProvider"

From GreenVulcano Wiki
Jump to: navigation, search
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>
  
envelope.body.addChild (@org.apache.axis2.util.XMLUtils toom (# input.object.getDocumentElement ()))
+
to add body.
 
 
to add body to the input Webservices
 

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.