List mimeParts = mimeMultipart.getMIMEParts();
Iterator mimePartIt = mimeParts.iterator();
while (mimePartIt.hasNext()) {
Object nextMimePart = mimePartIt.next();
if (nextMimePart instanceof MIMEPart) {
MIMEPart mimePart = (MIMEPart) nextMimePart;
if (!MIMEConstants
.NS_URI_MIME
.equals(mimePart.getElementType().getNamespaceURI()))
throw new WSIFException(
"A MIME part in binding operation "
+ bindingOperation.getName()
+ " did not have the correct namespace URI of "
+ MIMEConstants.NS_URI_MIME
+ ".");
boolean containsSoapBody = false;
boolean containsMimeContent = false;
List mimePartChildren = mimePart.getExtensibilityElements();
Iterator mimePartChildrenIt = mimePartChildren.iterator();
while (mimePartChildrenIt.hasNext()) {
Object nextChild = mimePartChildrenIt.next();
if (nextChild instanceof MIMEContent) {
MIMEContent mimeContent = (MIMEContent) nextChild;
if (!MIMEConstants
.NS_URI_MIME
.equals(
mimePart.getElementType().getNamespaceURI()))
throw new WSIFException(
"A MIME part in binding operation "
+ bindingOperation.getName()
+ " did not have the correct namespace URI of "
+ MIMEConstants.NS_URI_MIME