Andrea Smyth wrote:

It looks like this is a bug in the JDK - same or similar to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6467808 - I have a very simple test case which fails when run with JDK 1.5.0_09 but passes with JDK 1.5.0_06.

Actually the same workaround applies here, i.e. make sure that no namespace declaration is ever overwritten (by the same namespace), e.g. using this message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
 <soap:Header>
<wsa:MessageID xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>urn:uuid:32dd41e4-fe14-4603-9cee-e918f8d8a346</wsa:MessageID> <wsa:To xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>http://localhost:9020/SoapContext/GreeterPort</wsa:To> <wsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/none</wsa:Address>
   </wsa:ReplyTo>
<wsa:Action xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>GreetMeOneWay</wsa:Action>
   <wsrm:Sequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm";>
<wsrm:Identifier>urn:uuid:b17e5276-32b1-4c18-bc07-bdea1771b951</wsrm:Identifier>
     <wsrm:MessageNumber>3</wsrm:MessageNumber>
   </wsrm:Sequence>
 </soap:Header>
 <soap:Body>
<greetMeOneWay xmlns:ns2="http://www.w3.org/2005/08/addressing/wsdl"; xmlns="http://cxf.apache.org/greeter_control/types";><requestType>thrice</requestType></greetMeOneWay>
 </soap:Body>
</soap:Envelope>

Not sure yet how feasible this is ...
Andrea.

Reply via email to