webservice_mtom quickstarts demonstrates MTOM. The client part needs XMLStreamBuffer from server/${config}/soap.esb/streambuffer.xml to lookup endpoint. Quickstarts have this library on classpath and therefore everything works fine, but client should not be requested to have libraries in this directory on a classpath. Problematic is this line of code:
Service service = Service.create(wsdlURL, serviceName);
That causes: java.lang.NoClassDefFoundError: com/sun/xml/stream/buffer/XMLStreamBuffer
The issue was in SOA-P 5.1 as well but was hidden by a different bug in MTOM.
webservice_mtom quickstarts demonstrates MTOM. The client part needs XMLStreamBuffer from server/${config}/soap.esb/streambuffer.xml to lookup endpoint. Quickstarts have this library on classpath and therefore everything works fine, but client should not be requested to have libraries in this directory on a classpath. Problematic is this line of code: Service service = Service.create(wsdlURL, serviceName); That causes: java.lang.NoClassDefFoundError: com/sun/xml/stream/buffer/XMLStreamBuffer The issue was in SOA-P 5.1 as well but was hidden by a different bug in MTOM.