Objective: Demonstrate receiving SOAP messages over UDP and forwarding them over HTTP
- Configure Synapse to use the UDP transport. The sample Axis2 client should also be setup to send UDP requests.
- Start Synapse:
synapse -sample 267
- Start Axis2 server with SimpleStockService deployed
This sample is similar to Sample 266. Only difference is instead of the TCP transport we will be using the UDP transport to receive messages. Invoke the stockquote client using the following command. Note the TCP URL in the command.
Since we have configured the content type as text/xml for the proxy service, incoming messages will be processed as SOAP 1.1 messages. The sample Axis2 server console will print a message indicating that it has received the request: