Skip to content

Instantly share code, notes, and snippets.

@cdwijayarathna
Created December 4, 2013 08:04
Show Gist options
  • Save cdwijayarathna/7783834 to your computer and use it in GitHub Desktop.
Save cdwijayarathna/7783834 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="sec_policy"
src="file:repository/samples/resources/policy/policy_3.xml"/>
<sequence name="fault">
<log level="full">
<property name="MESSAGE" value="Executing default &#34;fault&#34; sequence"/>
<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
</log>
<drop/>
</sequence>
<sequence name="main">
<in>
<send>
<endpoint name="secure">
<address uri="http://localhost:9000/services/SecureStockQuoteService">
<enableAddressing/>
<enableSec policy="sec_policy"/>
</address>
</endpoint>
</send>
<log level="full"/>
</in>
<out>
<header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
name="wsse:Security"
action="remove"/>
<send/>
</out>
</sequence>
</definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment