zhouhuaian / redhat_bot_test

0 stars 0 forks source link

Missing client jars for MTOM support #562

Open zhouhuaian opened 6 months ago

zhouhuaian commented 6 months ago

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.