...
Code Block | ||
---|---|---|
| ||
<api xmlns="http://ws.apache.org/ns/synapse" name="RestToJmsAPI" context="/stockquotejmsstockquote"> <resource methods="POST" url-mapping="/order/*"> <inSequence> <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2"/> <property name="OUT_ONLY" value="true"/> <send> <endpoint> <address uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616" format="soap11"/> </endpoint> </send> </inSequence> </resource> </api> |
...
curl -v -d @placeorder.xml -H "Content-type: application/xml" http://127.0.0.1:8280/stockquotejmsstockquote/order/
Save the following sample place order request as "placeorder.xml" in your local file system and execute the above command.
...