<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    SOAP Message validation now enabled by default?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/paul.robinson">Paul Robinson</a> in <i>JBoss Web Services Development</i> - <a href="https://community.jboss.org/message/762174#762174">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Since AS7 upgraded from CXF '2.4.<span class="x">8-patch-01</span>' to '2.4.<span class="x">9</span><span>' (</span><a class="jive-link-external-small" href="https://github.com/jbossas/jboss-as/commit/0a1e626a5c4bf52a8c75e0cd27f15c4c08dfc24d" target="_blank">https://github.com/jbossas/jboss-as/commit/0a1e626a5c4bf52a8c75e0cd27f15c4c08dfc24d</a><span>) we have been getting the following 'unexpected element' error:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">18:34:17,669 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/127.0.0.1:8080-3) Interceptor for {http://schemas.arjuna.com/ws/2005/10/wsarjtx}TerminationParticipantSer
vice#{http://schemas.arjuna.com/ws/2005/10/wsarjtx}FaultOperation has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Unexpected element {http://schemas.xmlsoa
p.org/soap/envelope/}Fault found.&#160;&#160; Expected {http://schemas.arjuna.com/ws/2005/10/wsarjtx}Fault.
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.cxf.interceptor.DocLiteralInInterceptor.validatePart(DocLiteralInInterceptor.java:259) [cxf-rt-core-2.4.9.jar:2.4.9]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:201) [cxf-rt-core-2.4.9.jar:2.4.9]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [cxf-api-2.4.9.jar:2.4.9]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-rt-core-2.4.9.jar:2.4.9]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207) [cxf-rt-transports-http-2.4.9.jar:2.4.9]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185) [cxf-rt-transports-http-2.4.9.jar:2.4.9]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108) [cxf-rt-transports-http-2.4.9.jar:2.4.9]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_35]
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> This error occurs because our message type doesn't match that required by the WSDL:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code"> &lt;soap:Body&gt;
&#160;&#160;&#160;&#160;&#160; &lt;ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://schemas.arjuna.com/ws/2005/10/wsarjtx"&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;faultcode&gt;ns3:TransactionRolledBack&lt;/faultcode&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;faultstring&gt;ARJUNA043178: Transaction rolled back&lt;/faultstring&gt;
&#160;&#160;&#160;&#160;&#160; &lt;/ns2:Fault&gt;
 &lt;/soap:Body&gt;</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Notice that the message is of type "ns2:Fault", rather than "ns3:Fault". The wsdl wants a '{<span class="code-quote"><span class="code-quote"><a class="jive-link-external-small" href="http://schemas.arjuna.com/ws/2005/10/wsarjtx" target="_blank">http://schemas.arjuna.com/ws/2005/10/wsarjtx</a><span>}Fault'.</span></span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span class="code-quote"><span class="code-quote">So we have two problems here. The first is the problem that we have been sending malformed messages for some time. The second is that since the upgrade to CXF 2.4.9, this issue was not tolerated. In the long term we need to fix the message, but that may not be possible in the short term as we may not be able to get this fix into the release that needs it.</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span class="code-quote"><span class="code-quote">Do you know what has changed in CXF to cause this issue and do you know of a work-around?</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>For the original issue see here: </span><a class="jive-link-external-small" href="https://issues.jboss.org/browse/JBTM-1275" target="_blank">https://issues.jboss.org/browse/JBTM-1275</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span class="code-quote"><span class="code-quote">Thanks,</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span class="code-quote"><span class="code-quote">Paul.<br/></span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span class="code-quote"><span class="code-quote"><br/></span></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/762174#762174">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>