WSIConstants.NS_URI_SOAP,
XMLUtils.SOAP_ELEM_BODY);
if (soapBodyList.getLength() == 0 || soapBodyList.getLength() > 1)
{
// There is not a body or more than one bodies in the envlope.
throw new AssertionPassException();
}
// find headers
NodeList soapHeaders =
doc.getElementsByTagNameNS(
WSITag.ELEM_SOAP_HEADER.getNamespaceURI(),
WSITag.ELEM_SOAP_HEADER.getLocalPart());
//find all operation
//Element soapOperation = XMLUtils.getFirstChild(soapBodyElem);
// gets soapbind:headers
List bindingHeaders = null;
if (entryContext
.getMessageEntry()
.getType()
.equals(MessageEntry.TYPE_REQUEST))
{
if (bindingOperation.getBindingInput() != null)
bindingHeaders =
bindingOperation.getBindingInput().getExtensibilityElements();
else
throw new AssertionFailException();
}
else
{
if (entryContext
.getMessageEntry()
.getType()
.equals(MessageEntry.TYPE_RESPONSE))
{
if (bindingOperation.getBindingOutput() != null)
bindingHeaders =
bindingOperation.getBindingOutput().getExtensibilityElements();
else
throw new AssertionFailException();
}
}
if (bindingHeaders == null || bindingHeaders.size() == 0)
{
throw new AssertionPassException();
}
Iterator iterator = bindingHeaders.iterator();
while (iterator.hasNext())
{