http://docs.wso2.org/display/ESB470/Sample+440%3A+Exposing+a+SOAP+Service+Over+JSON

this works but only for send mediator.

I've added relevant Message formatters in
samples/axis2Client/client_repo/conf/axis2.xml too.

..............
<<transformation [1]>>
<property name="Content-Type" value="application/json" scope="transport"/>
<property name="messageType" value="application/json" scope="axis2"
type="STRING"/>
 <property name="enableREST" value="true" scope="axis2-client"
type="BOOLEAN"/>
   <callout initAxis2ClientOptions="false">
      <source xmlns:s12="http://www.w3.org/2003/05/soap-envelope"; xmlns:ns="
http://org.apache.synapse/xsd"; xmlns:s11="
http://schemas.xmlsoap.org/soap/envelope/";
xpath="s11:Body/child::*[fn:position()=1] |
s12:Body/child::*[fn:position()=1]"/>
      <target xmlns:s12="http://www.w3.org/2003/05/soap-envelope"; xmlns:ns="
http://org.apache.synapse/xsd"; xmlns:s11="
http://schemas.xmlsoap.org/soap/envelope/";
xpath="s11:Body/child::*[fn:position()=1] |
s12:Body/child::*[fn:position()=1]"/>
   </callout>
   <property name="enableREST" value="false" scope="axis2-client"
type="BOOLEAN"/>
................


[1]

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
            <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
            <xsl:template match="*">
                <xsl:element name="{local-name()}">
                    <xsl:apply-templates/>
                </xsl:element>
            </xsl:template>
        </xsl:stylesheet>
-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to