Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation:
repository/samples/directory that includes all Integration profile samples is changed to
repository/samples/resources/directory that includes all artifacts related to the Integration profile samples is changed to
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: