Jboss.esb.xml allow only post request




How can i allow only to post request on jboss.esb.xml

I have done some code on jboss.esb.xml but not working.
My jboss.esb.xml


<providers>
<http-provider name="http">
<http-bus busid="secureFriends">
<allowed-roles>
<role name="friend" />
</allowed-roles>
<protected-methods>
<method name="POST"/>
</protected-methods>
</http-bus>
</http-provider>
</providers>
<services>
<service category="Invoke" description="Invoke TPSAPIProxy" invmScope="GLOBAL" name="TPSAPIProxy">

<listeners>
<http-gateway name="Http" urlPattern="Invoke/*" payloadAs="STRING" busidref="secureFriends" >
<property name="synchronousTimeout" value="${TPSAPIProxy.timeout.timeout}"/>
</http-gateway>
</listeners>


Inside tag providers tag i have put protected-methods inside which i put method name as POST which allow only post request but still its not working.


here is some refrence : http://ift.tt/1AgK7tA.


No comments:

Post a Comment