String unboundPart = getUnboundPart(swaRefParts,
portTypeInput.getMessage().getQName(),
bindingInput == null ? null : bindingInput.getExtensibilityElements());
// If such wsdl:part exists, assertion failed
if (unboundPart != null)
throw new AssertionFailException("The part \"" + unboundPart
+ "\" is not bound properly to the wsdl:input of the \""
+ bindingOperation.getName() + "\" binding operation.");
}
}
// If the corresponding wsdl:output exists in wsdl:portType
// and includes the message attribute
if (portTypeOutput != null && portTypeOutput.getMessage() != null)
{
// Collecting all the message's parts defined with ref:swaRef
List swaRefParts = getSwaRefParts(portTypeOutput.getMessage());
if (!swaRefParts.isEmpty())
{
swaRefFound = true;
// Getting a wsdl:part that is unbound
String unboundPart = getUnboundPart(swaRefParts,
portTypeOutput.getMessage().getQName(),
bindingOutput == null ? null : bindingOutput.getExtensibilityElements());
// If such wsdl:part exists, assertion failed
if (unboundPart != null)
throw new AssertionFailException("The part \"" + unboundPart
+ "\" is not bound properly to the wsdl:input of the \""
+ bindingOperation.getName() + "\" binding operation.");
}
}
}