This documentation is for WSO2 Enterprise Service Bus version 4.7.0 . View documentation for the latest release.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Objective: Demonstrate receiving SOAP messages over UDP and forwarding them over HTTP

Code Block
<definitions xmlns=""

    <proxy name="StockQuoteProxy" transports="udp">
                <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
                <log level="full"/>
                <property name="OUT_ONLY" value="true"/>
        <parameter name="transport.udp.port">9999</parameter>
        <parameter name="transport.udp.contentType">text/xml</parameter>
        <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>


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.

Code Block
ant stockquote -Daddurl=udp://localhost:9999?contentType=text/xml -Dmode=placeorder

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:

Code Block
Thu May 20 12:25:01 IST 2010 :: Accepted order #1 for : 17621 stocks of IBM at $ 73.48068475255796