{
BindingOperation bindingOperation = (BindingOperation) ops.get(i);
// Getting wsdl:input and wsdl:output elements of an operation
BindingInput bindingInput = bindingOperation.getBindingInput();
BindingOutput bindingOutput = bindingOperation.getBindingOutput();
// Collecting all the mime:content elements from wsdl:input and wsdl:output
List inputMimeContents = getMimeContentElements(
bindingInput == null ? null : bindingInput.getExtensibilityElements());
List outputMimeContents = getMimeContentElements(
bindingOutput == null ? null : bindingOutput.getExtensibilityElements());
// If the wsdl:input contains mime:content elements
if (!inputMimeContents.isEmpty())
{
Input portTypeInput = bindingOperation.getOperation().getInput();