<!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="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">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;">
    XTS tests broken in AS trunk after switch to CXF stack in 3.3.0
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/adinn">Andrew Dinn</a> in <i>JBoss Web Services CXF</i> - <a href="http://community.jboss.org/message/546982#546982">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi Jim,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p>Jim Ma wrote:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The Contextutils.getActionFromMessageAttributes(msgInfo)&#160; is intended to get action value when there is no wsdl provided in service impl class(Service built from class)&#160; CXF simply uses MessageInfo.getExtensionAttributes() != null to check if this service is built from service class (with no wsdl location provided) . There is probably some issue when the wsdl have extension to put in the extensionAttributes of MessageInfo . The NPE guard should be added in ContextUtils.getAction() .&#160; Andrew, can you paste the&#160; wsdl ?&#160; Is there anything special in your wsdl file ?</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>There <em>is</em> wsdl provided in the service imple class as my earlier post showed</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p><span style="font-family: courier new,courier;">@WebService(targetNamespace = "<a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06">http://docs.oasis-open.org/ws-tx/wscoor/2006/06</a>", name = "ActivationPortType",<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; wsdlLocation = "/WEB-INF/wsdl/wscoor-activation-binding.wsdl",<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; serviceName = "ActivationService",<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; portName = "ActivationPortType"<br/>)<br/>@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)<br/>// @EndpointConfig(configName = "Standard WSAddressing Endpoint")<br/>@HandlerChain(file="/handlers.xml")<br/>@Addressing(required=true)<br/>public class ActivationPortTypeImpl implements ActivationPortType<br/>{</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; . . .</span></p></blockquote><p>There is nothing unusual about this wsdl. It extends a standard wsdl defined by OASIS WS-C with a binding for the Activation Coordinator service.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><span style="font-family: courier new,courier;">&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/><span>&lt;wsdl:definitions xmlns:wsdl="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/" target="_blank">http://schemas.xmlsoap.org/wsdl/</a><span>" xmlns:soap="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/soap/" target="_blank">http://schemas.xmlsoap.org/wsdl/soap/</a><span>" xmlns:xs="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>" xmlns:wsa="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" target="_blank">http://www.w3.org/2005/08/addressing</a><span>" xmlns:wscoor="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06</a><span>" targetNamespace="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06</a><span>" xmlns:wsaw="</span><a class="jive-link-external-small" href="http://www.w3.org/2006/02/addressing/wsdl" target="_blank">http://www.w3.org/2006/02/addressing/wsdl</a><span>"&gt;
</span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: courier new,courier;"> </span>&#160;</p><span style="font-family: courier new,courier;">
&#160; &lt;wsdl:import<br/><span>&#160;&#160;&#160;&#160;&#160; namespace="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06</a><span>"</span><br/>&#160;&#160;&#160;&#160;&#160; location="wscoor.wsdl" /&gt;
</span><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: courier new,courier;"> </span>&#160;</p><span style="font-family: courier new,courier;">
&#160; &lt;wsdl:binding name="Activation_SOAPBinding" type="wscoor:ActivationPortType"&gt;<br/><span>&#160;&#160;&#160; &lt;soap:binding style="document" transport="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/http" target="_blank">http://schemas.xmlsoap.org/soap/http</a><span>"/&gt;</span><br/>&#160;&#160;&#160; &lt;wsdl:operation name="CreateCoordinationContextOperation"&gt;<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContext" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContext</a><span>"/&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wscoor:CreateCoordinationContext"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:input&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wscoor:CreateCoordinationContextResponse"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:output&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:operation&gt;<br/>&#160; &lt;/wsdl:binding&gt;
</span><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: courier new,courier;"> </span>&#160;</p><span style="font-family: courier new,courier;">
&#160; &lt;wsdl:service name="ActivationService"&gt;<br/>&#160;&#160;&#160;&#160; &lt;wsdl:port binding="wscoor:Activation_SOAPBinding" name="ActivationPortType"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsaw:UsingAddressing required="true"/&gt;<br/><span>&#160;&#160;&#160;&#160;&#160; &lt;soap:address location="</span><a class="jive-link-external-small" href="http://localhost:9000/ws-c11/ActivationService" target="_blank">http://localhost:9000/ws-c11/ActivationService</a><span>"/&gt;</span><br/>&#160;&#160;&#160; &lt;/wsdl:port&gt;<br/>&#160; &lt;/wsdl:service&gt;
</span><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: courier new,courier;"> </span>&#160;</p><span style="font-family: courier new,courier;">
&lt;/wsdl:definitions&gt;</span><span style="font-family: courier new,courier;"> <br/></span></blockquote><p>The imported file wscoor.wsdl is exactly as provided by the OASIS WS-C 1.1 standard. It merely defines the types and messages for the Activation Coordinator and Registration Coordinator web services.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><span style="font-family: courier new,courier;">&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;!-- <br/>OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS President.<br/>OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS President.<br/>Copyright OASIS Open 2006. All Rights Reserved.<br/>This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself must not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.<br/>The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.<br/>This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.<br/>--&gt; <br/><span>&lt;wsdl:definitions xmlns:wsdl="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/" target="_blank">http://schemas.xmlsoap.org/wsdl/</a><span>" xmlns:xs="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>" xmlns:wsa="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" target="_blank">http://www.w3.org/2005/08/addressing</a><span>" xmlns:wscoor="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06</a><span>" targetNamespace="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06</a><span>"&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsdl:types&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:schema&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!--<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:import<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; namespace='</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" target="_blank">http://www.w3.org/2005/08/addressing</a><span>'</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; schemaLocation='ws-addr.xsd' /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:import<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; namespace='</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06</a><span>'</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; schemaLocation='wscoor.xsd' /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/xs:schema&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:types&gt; <br/>&#160; &lt;!-- Messages --&gt;<br/>&#160; &lt;wsdl:message name="CreateCoordinationContext"&gt;<br/>&#160;&#160;&#160; &lt;wsdl:part name="parameters" element="wscoor:CreateCoordinationContext"/&gt;<br/>&#160; &lt;/wsdl:message&gt;<br/>&#160; &lt;wsdl:message name="CreateCoordinationContextResponse"&gt;<br/>&#160;&#160;&#160; &lt;wsdl:part name="parameters" element="wscoor:CreateCoordinationContextResponse"/&gt;<br/>&#160; &lt;/wsdl:message&gt;<br/>&#160; &lt;wsdl:message name="Register"&gt;<br/>&#160;&#160;&#160; &lt;wsdl:part name="parameters" element="wscoor:Register"/&gt;<br/>&#160; &lt;/wsdl:message&gt;<br/>&#160; &lt;wsdl:message name="RegisterResponse"&gt;<br/>&#160;&#160;&#160; &lt;wsdl:part name="parameters" element="wscoor:RegisterResponse"/&gt;<br/>&#160; &lt;/wsdl:message&gt;<br/>&#160; &lt;!-- Port Types --&gt;<br/>&#160; &lt;wsdl:portType name="ActivationPortType"&gt;<br/>&#160;&#160;&#160; &lt;wsdl:operation name="CreateCoordinationContextOperation"&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wscoor:CreateCoordinationContext"<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; wsa:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContext" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContext</a><span>"/&gt;</span><br/>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wscoor:CreateCoordinationContextResponse"<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; wsa:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContextResponse" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContextResponse</a><span>"/&gt;</span><br/>&#160;&#160;&#160; &lt;/wsdl:operation&gt;<br/>&#160; &lt;/wsdl:portType&gt;<br/>&#160; &lt;wsdl:portType name="RegistrationPortType"&gt;<br/>&#160;&#160;&#160; &lt;wsdl:operation name="RegisterOperation"&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wscoor:Register"<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; wsa:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06/Register" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06/Register</a><span>"/&gt;</span><br/>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wscoor:RegisterResponse"<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; wsa:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06/RegisterResponse" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06/RegisterResponse</a><span>"/&gt;</span><br/>&#160;&#160;&#160; &lt;/wsdl:operation&gt;<br/>&#160; &lt;/wsdl:portType&gt;<br/>&lt;/wsdl:definitions&gt;</span><span style="font-family: courier new,courier;"> </span></blockquote><p>Anyway, the problem does not seem to me to be anything to do with the wsdl nor indeed the service impl bean definition. Both the wsdl and the @Action annotation specify that the reponse should use the same action</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="padding-left: 30px;"><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContextResponse" target="_blank">http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContextResponse</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and indeed that is the actionstored in the msginfo hashmap. The problem is that CXF is storing it with one key and looking it up with different keys.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I don't think the problem is safeguarded just by checking for null. Somehgow the MAPAggregator shoudl idenitfy that an Acton was provided. I think it should be looking for a map entry with the key under which the action has been installed. If it does not detect it this way how else will it idenitfy that the action was specified in the wsdl and in the @Action annotation?</p></div>

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


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

</div>

</body>
</html>