Overview
This sample demonstrates how to exchange binary data between a Webservice client and ESB aware
Webservice Service, using MTOM/XOP. JBossESB relies of JBossWS for MTOM/XOP support.
See more here.
This quickstart simply sends an image (binary data) from a webservice client to a JBossESB aware
Webservice, using MTOM/XOP.
Prerequisits
Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts
and a more detailed descripton of the different ways to run the quickstarts.
NOTE: This Quickstart requires the JBossRemoting 2.2.2SP2 or higher patch to be applied.
If you are running on the JBoss App Server (and not the JBoss ESB Server), then you may need to apply a patch. This simply involves downloading
jboss-remoting.jar
and copying it into your "server/<server>/lib" folder. Be sure to restart your JBoss
Application/ESB Server instance.
To Run
- In a command terminal window in this folder ("Window1"), type 'ant deploy'.
- Open another command terminal window in this folder ("Window2"), type
'ant runtest'.
- Check "Window1" and "Window2" for output.
- To undeploy, type 'ant undeploy' in "Window1".
"Window1" should contain ESB Server side logging from the quickstart, showing the message before and
after execution through the SOAPProcessor.
"Window2" should contain Client side logging from the quickstart, showing the the image (binary data)
was successfully transmitted from client to server and back. See
MTOMClient.java.