Difference between revisions of "Axis2MessageContextDataProvider"

From GreenVulcano Wiki
Jump to: navigation, search
(Created page with "The DataProvider Axis2MessageContextDataProvider Axis allows you to set objects to manipulate input / output for webservices. Gli oggetti usati in axis2 sono OMElement.")
 
m
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
The DataProvider Axis2MessageContextDataProvider Axis allows you to set objects to manipulate input / output for webservices.
 
The DataProvider Axis2MessageContextDataProvider Axis allows you to set objects to manipulate input / output for webservices.
Gli oggetti usati in axis2 sono OMElement.
+
 
 +
The objects used in Axis2 are  [http://ws.apache.org/axiom/apidocs/org/apache/axiom/om/package-summary.html OMElement].
 +
 
 +
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.util.XMLUtils ] has a number of methods for manipulating objects OM.
 +
 
 +
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, or set Axis2 invocation related options:
 +
 
 +
<syntaxhighlight lang="java5">
 +
options.setProperty(@org.apache.axis2.Constants$Configuration@ENABLE_REST, @org.apache.axis2.Constants@VALUE_TRUE)
 +
</syntaxhighlight>
 +
 
 +
to enable REST.
 +
 
 +
=={{GVESB}} Configuration==
 +
 
 +
The Axis2MessageContextDataProvider Element is used by: [[GVDataProviderManager#DataProviders|DataProviders]].
 +
The following table shows its attributes:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || fixed || This attribute must assume the value '''dataProvider'''.
 +
|-
 +
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.gvdp.impl.Axis2MessageContextDataProvider'''.
 +
|-
 +
| name || required || Name of the Axis2MessageContextDataProvider.
 +
|}
 +
 
 +
Contains the sub-element [[Field]].
 +
 
 +
{{VOTE}}

Latest revision as of 17:18, 16 July 2012

The DataProvider Axis2MessageContextDataProvider Axis allows you to set objects to manipulate input / output for webservices.

The objects used in Axis2 are OMElement.

The context of the DataProvider object is org.apache.axis2.MessageContext

The class org.apache.axis2.util.XMLUtils 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, or set Axis2 invocation related options:

options.setProperty(@org.apache.axis2.Constants$Configuration@ENABLE_REST, @org.apache.axis2.Constants@VALUE_TRUE)

to enable REST.

GreenVulcano® ESB Configuration

The Axis2MessageContextDataProvider Element is used by: DataProviders. The following table shows its attributes:

Attribute Type Description
type fixed This attribute must assume the value dataProvider.
class fixed This attribute must assume the value it.greenvulcano.gvesb.gvdp.impl.Axis2MessageContextDataProvider.
name required Name of the Axis2MessageContextDataProvider.

Contains the sub-element Field.

{{#w4grb_rate:}} <w4grb_ratinglist latestvotes items="5" nosort/>