// If the corresponding wsdl:input exists in wsdl:portType
// and includes the message attribute
if (portTypeInput != null && portTypeInput.getMessage() != null)
{
// If there is an invalid mime:content element
MIMEContent imc = getInvalidMimeContent(
inputMimeContents, portTypeInput.getMessage());
if (imc != null)
{
throw new AssertionFailException("The mime:content element in "
+ "the wsdl:input of the \"" + bindingOperation.getName()
+ "\" that binds the \"" + imc.getPart()
+ "\" wsdl:part uses the invalid content type \""
+ imc.getType() + "\". ");
}
}
}
// If the wsdl:output contains mime:content elements
if (!outputMimeContents.isEmpty())
{
Output portTypeOutput = bindingOperation.getOperation().getOutput();
// If the corresponding wsdl:output exists in wsdl:portType
// and includes the message attribute
if (portTypeOutput != null && portTypeOutput.getMessage() != null)
{
// If there is an invalid mime:content element
MIMEContent imc = getInvalidMimeContent(
outputMimeContents, portTypeOutput.getMessage());
if (imc != null)
{
throw new AssertionFailException("The mime:content element in "
+ "the wsdl:output of the \"" + bindingOperation.getName()
+ "\" that binds the \"" + imc.getPart()
+ "\" wsdl:part uses the invalid content type \""
+ imc.getType() + "\". ");
}
}
}
}
// If mime:content elements are not found,