0 Replies Latest reply on Nov 23, 2017 9:33 PM by Mike Chi

    SOAPMessageContext vs SOAPMessageContextImpl

    Mike Chi Newbie

      Hello All,

       

      I am currently trying to move an application from IBM WAS server to JBoss server. One of them problem I am having is below code.

       

      private class ServiceHandler implements SOAPHandler<SOAPMessageContext> {
           public boolean handleMessage(SOAPMessageContext smc) {
                smc.getClass().getName();
      

       

      On WAS server, the class name is  javax.xml.ws.handler.soap.SOAPMessageContext

      On JBoss Server, the class name is org.apache.cxf.jaxws.handler.soap.SOAPMessageContextImpl

       

      Exactly same code, but why does JBoss return different objects? I been searching online for few days, no luck, hope someone here can help.

      Is there any setting in JBoss that I miss? I mean, I don't even have the org.apache.cxf jar, what and how does the object SOAPMessageContextImpl get created?

       

      Thanks,

      Mike