6. Web Services with SOAP and WSDL

rest2Soap

Version

Converts REST requests into SOAP messages.

Syntax

rest2Soap:
mappings:
- <rest2Soap-mapping>
rest2Soap:
  mappings:
    - <rest2Soap-mapping>

Sample

<serviceProxy port="2000">
<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>
</serviceProxy>
<serviceProxy port="2000">
 <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>
</serviceProxy>

Child Structure

ElementCardinalityDescription
rest2Soap-mapping0..*Specifies the mappings. The first matching mapping will be applied to the request.

Can be used in