Proxy with enrich mediator sends HTTP 200 together with a custom message
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="200Proxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="custom">
<property name="it" value="** Its Inline Sequence ****"/>
</log>
<loopback/>
</inSequence>
<outSequence>
<property name="HTTP_SC" value="200" scope="axis2"/>
<enrich>
<source type="inline" clone="true">
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header/>
<soapenv:Body>DIMUTHUD</soapenv:Body>
</soapenv:Envelope>
</source>
<target type="envelope"/>
</enrich>
<property name="messageType" value="application/soap+xml" scope="axis2"/>
<header name="To" action="remove"/>
<property name="RESPONSE" value="true" scope="default" type="STRING"/>
<send/>
</outSequence>
</target>
<description/>
</proxy>
No comments:
Post a Comment