rest2Soap/mapping
Can be used in
Syntax
<mapping regex="string" uri="string" />
Listing 1: mapping Syntax
Sample
<rest2Soap> <mapping regex="/bank/.*" soapAction="" soapURI="/axis2/services/BLZService" requestXSLT="blz-request.xsl" responseXSLT="blz-response.xsl" /> <mapping regex="/shop/.*" soapAction="" soapURI="/axis2/services/ShopService" requestXSLT="shop-request.xsl" responseXSLT="shop-response.xsl" /> </rest2Soap>
Listing 2: mapping Example
Attributes
Name | Mandatory | Default | Description | Example |
---|---|---|---|---|
regex | yes | - | Java Regular expression | /bank/.* |
soapAction | yes | - | Value of the soapAction header field. | |
soapURI | yes | - | Endpoint address of the SOAP service. | /axis2/$1 |
requestXSLT | no | Transformation that will be applied to the request. | blz-request.xsl | |
responseXSLT | no | Transformation that will be applied to the response. | shop-request.xsl | |
responseType | no | xml | Whether to transform the response XML to JSON or not. | json |
Explanation and Example
See rest2Soap.