0 Replies Latest reply on Aug 12, 2016 5:30 AM by pawlish81

    WildFly 10 - SOAP Message missing header <?xml version="1.0" encoding="utf-8" ?>

    pawlish81

      Hello,

       

      I stuck with wilfly webservice configuration, default wildfly soap message not contain <?xml version="1.0" encoding="utf-8" ?> at the beginning.

       

      I was tyring to add it by SOAPHandler<SOAPMessageContext>  in method handleMessage(SOAPMessageContext context).

       

      SOAPMessage message = context.getMessage();

      message.setProperty(SOAPMessage.WRITE_XML_DECLARATION ,"true");

       

      after this change Im sending soap'message to system out and I can see xml declaration, but outside server , in SOAPUI declaration is gone. Do I have to set this message  to context after change ?

       

      Was checking on two different wildlfys , and two different apps with webservice.

       

      Any Ideas ?

       

      Thanks

       

      Piotr