Hi, I am running Axis2 on Geronimo 3.0, and in the latest JAX-WS TCK testing, I got a NPE for some cases. The cause for it is that some cases will check whether those elements are not in the SOAP headers, while those soap message has no header element.
>From the Java doc of SOAPMessage, it writes :
public SOAPHeader getSOAPHeader() throws SOAPException
SOAPHeaderobject contained by this
SOAPException- if the SOAP Header does not exist or cannot be retrieved
SOAPHeader getHeader() throws SOAPException
SOAPHeaderobject for this
SOAPMessage object is by default created with a
SOAPEnvelope object that contains an empty
object. As a result, the method
getHeader will always return a
SOAPHeader object unless the header has been removed and a new one
has not been added.
nullif there is none
SOAPException- if there is a problem obtaining the