This is a bug. For the time being a work around is to wrap the separate
elements inside a root element like:

<root>
  <a1>aaa</a1>
  <b1>bbb</b1>
</root>




On Sat, Dec 28, 2013 at 3:17 PM, indika prasad <[email protected]> wrote:

> Hi,
>
> I have a issue with below proxy and SoupUI.
>
> Proxy
> --------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <proxy xmlns="http://ws.apache.org/ns/synapse";
>        name="souptest"
>        transports="https,http"
>        statistics="disable"
>        trace="disable"
>        startOnLoad="true">
>    <target>
>       <inSequence>
>          <payloadFactory media-type="json">
>             <format>{
>               "contentType":"linkedin-html",
>               "body":"update body"
>             }</format>
>             <args/>
>          </payloadFactory>
>          <property name="messageType" value="application/json"
> scope="axis2"/>
>          <send>
>             <endpoint>
>                <address uri="http://localhost:8281/services/jsonService";
> format="rest"/>
>             </endpoint>
>          </send>
>       </inSequence>
>    </target>
>    <description/>
> </proxy>
>
> --------------------
>
> 01. Using SoupUI with following request send the expected massage to the
> given endpoint.
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "
> >
> ----soap request---------
> <soapenv:Header/>
>    <soapenv:Body>
>       <a1>aaa</a1>
>   </soapenv:Body>
> </soapenv:Envelope>
>  ------------------------
> ----TCPMon out put-----
> POST /services/jsonService HTTP/1.1
> Accept-Encoding: gzip,deflate
> Content-Type: application/json
> SOAPAction:
> Transfer-Encoding: chunked
> Host: 127.0.0.1:8281
> Connection: Keep-Alive
> User-Agent: Synapse-PT-HttpComponents-NIO
>
> 47
> {
>         "contentType":"linkedin-html",
>         "body":"update body"
> }
> 0
>
> ------------------------
>
> 02. Using SoapUI with following request send the strange massage to the
> endpoint. Where the payload has replaced by the second element of the soup
> request!
> ------soup request--------
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "
> >
>    <soapenv:Header/>
>    <soapenv:Body>
>       <a1>aaa</a1>
>       <b1>bbb</b1>
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------
> ----TCPMon out put-----
> POST /services/jsonService HTTP/1.1
> Accept-Encoding: gzip,deflate
> Content-Type: application/json
> SOAPAction:
> Transfer-Encoding: chunked
> Host: 127.0.0.1:8281
> Connection: Keep-Alive
> User-Agent: Synapse-PT-HttpComponents-NIO
>
> c
> {"b1":"bbb"}
> 0
>
> ------------------------
>
> Thanks
> Indika
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Issue-with-ESB-4-8-and-SoupUI-tp90206.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
*Ravi Undupitiya*
Software Engineer; WSO2 Inc.; http://wso2.com


*E-mail: [email protected] <http://wso2.com>**M: **+94 772 930 712*

Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to