// Going through the soap:headerfaultS
for (int j = 0; j < headerFaults.size(); j++)
{
if (headerFaults.get(j) instanceof SOAPHeaderFault)
{
SOAPHeaderFault shf = (SOAPHeaderFault) headerFaults.get(j);
// If a soap:headerfault references the corresponding
// message, adding part name to the list
if (message.equals(shf.getMessage()))
parts.add(shf.getPart());
}
// the same workaround...
else
{
Element shf = (Element) headerFaults.get(j);
// If a soap:headerfault references the corresponding
// message, adding part name to the list
if (referencesMessage(shf, message.getQName()))
parts.add(shf.getAttribute("part"));
}
}
}
// else if that is a mime:content
else if (extElem.getElementType().equals(WSDL_MIME_CONTENT))