SOAPHeader not serialised in Sandesha unit tests
------------------------------------------------

                 Key: WSCOMMONS-181
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-181
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
            Reporter: David Illsley
         Assigned To: Glen Daniels
            Priority: Critical


The Sandesha unit tests fail when running from a clean maven repository. The 
problem is that the SOAPHeader is being omitted when it is serialised to the 
wire (the header appears in the in-memory object model before then).

I took a look at SOAPEnvelopeImpl and it looks like the recent chenges to 
getFirstChildWithName have broken the logic in internalSerialize(). It 
currently assumes that if it passes in a new QName("Header") that either a 
SOAP1.1 or a SOAP 1.2 header element will be found. In reality, with these 
changes neither will. 

I did a quick hack locally to change the QName to add the SOAP 1.1 namespace 
and the unit tests then passed.

I'm not an Axiom expert and I don't know what the best fix for this is (or why 
this problem isn't breaking the Axis2 tests! so I don't want to bodge a fix for 
this myself.

Glen, I know you made some changes around this area, could you take a look?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to