Hi all,
Shall we update ESB default main sequence as follows
<sequence name="main">
<in>
<payloadFactory>
<format>
<Error>
<Message>Nothing found in context $1</Message>
<Code>404</Code>
</Error>
</format>
<args>
<arg evaluator="xml" expression="get-property('To')"/>
</args>
</payloadFactory>
<property name="HTTP_SC" value="404" scope="axis2"/>
<property name="RESPONSE" value="true"/>
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
<header name="To" action="remove"/>
<send/>
<drop/>
</in>
<description>The main sequence for the message mediation</description>
</sequence>
So any request not hitting to a proxt/API will get a 404. If someone need
to mediate via main sequence, he can configure it accordingly.
Current ESB default main sequence does not have any meaning
<sequence xmlns="http://ws.apache.org/ns/synapse" name="main">
<description>The main sequence for the message mediation</description>
<in>
<log level="full"/>
<filter source="get-property('To')" regex="http://localhost:9000.*">
<send/>
</filter>
</in>
<out>
<send/>
</out>
</sequence>
--
Miyuru Wanninayaka
Technical Lead
WSO2 Inc. : http://wso2.com
Mobile : +94 77 209 9788
Blog : http://miyurudw.blogspot.com
Flickr : http://www.flickr.com/photos/miyuru_daminda
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev