<proxy xmlns="http://ws.apach
name="testMockS
transports="htt
statistics="dis
trace="disable"
startOnLoad="tr
<target>
<inSequence>
<log level="custom">
<property name="MockServi
</log>
<log level="full"/>
<payloadFactory
<format>
<response>
<response1>Samp
<info>http://www.wso2
</response>
</format>
<args/>
</payloadFactor
<header name="To" action="remove"
<property name="RESPONSE" value="true" scope="default" type="STRING"/>
<property name="NO_ENTITY
<send/>
</inSequence>
</target>
<description/>
</proxy>
Note the following characteristics of the configuration,
<payloadFactory
<format>
<response>
<response1>Samp
<info>http://www.wso2
</response>
</format>
<args/>
</payloadFactor
The above configuration snippet will allow constructing a new payload which should be sent, the xml elements listed between the <format/> tag will construct the new payload.
Note the following three properties,
<header name="To" action="remove"
<property name="RESPONSE" value="true" scope="default" type="STRING"/>
<property name="NO_ENTITY
The above will allow the message to be set back to be transmitted to the caller who sent the message,
using the <send /> will result in sending the constructed message back to the caller.
This comment has been removed by the author.
ReplyDeleteHi, I have a simple question.
ReplyDeleteIs WSO2 able to respond a specific message based on the request message?
For instance,
if tagA contains value "123", respond tagZ has value "ABC".
else,
if tagA contains value "456", respond tagZ has value "DEF".
Thanks in advance!