This rule flags calls to the methods that retrieve SOAPMessage header and body elements. In order to comply with the SOAP with Attachments API for Java (SAAJ) specification, the getSOAPHeader and getSOAPBody methods were changed to throw a SOAPException rather than returning null when the header or body element is missing or cannot be retrieved.
Specifically, the following methods are flagged
The methods are flagged so that the application can be modified to handle a SOAPException for the error rather than a null returned value.
Instead of changing the application, you can revert the behavior by setting the System property com.ibm.websphere.webservices.soap.enable.legacy.get.behavior to the String value of true . The property is defined as the constant field in com.ibm.websphere.webservices.soap.IBMSOAPMessage.ENABLE_LEGACY_GETSOAP_BEHAVIOR .
For additional information see: