WSDLBindingOperation operation = operations[i];
QName interfaceName = operation.getWsdlBinding().getInterfaceName();
WSDLInterface wsdlInterface = wsdl.getInterface(interfaceName);
if (wsdlInterface == null)
throw new WSException("WSDL Interface should not be null");
WSDLInterfaceOperation interfaceOperation = wsdlInterface.getOperation(operation.getRef());
buffer.append("<operation name='" + interfaceOperation.getName().getLocalPart() + "'>");
String soapAction = (operation.getSOAPAction() != null ? operation.getSOAPAction() : "");
appendUnknownExtensibilityElements(buffer, operation);
buffer.append("<" + soapPrefix + ":operation soapAction=\"" + soapAction + "\"/>");
WSDLBindingOperationInput[] inputs = operation.getInputs();
if (inputs.length != 1)
throw new WSException("WSDl 1.1 only supports In-Only, and In-Out MEPS.");
buffer.append("<input>");
appendUnknownExtensibilityElements(buffer, inputs[0]);
appendSOAPBinding(buffer, wsdlInterface, operation, inputs);
buffer.append("</input>");