/* 490 */ QName interfaceName = operation.getWsdlBinding().getInterfaceName();
/* */
/* 492 */ WSDLInterface wsdlInterface = this.wsdl.getInterface(interfaceName);
/* 493 */ if (wsdlInterface == null)
/* 494 */ throw new WSException("WSDL Interface should not be null");
/* 495 */ WSDLInterfaceOperation interfaceOperation = wsdlInterface.getOperation(operation.getRef());
/* */
/* 497 */ buffer.append("<operation name='" + interfaceOperation.getName().getLocalPart() + "'>");
/* 498 */ String soapAction = operation.getSOAPAction() != null ? operation.getSOAPAction() : "";
/* 499 */ appendUnknownExtensibilityElements(buffer, operation);
/* 500 */ buffer.append("<" + this.soapPrefix + ":operation soapAction=\"" + soapAction + "\"/>");
/* */
/* 502 */ WSDLBindingOperationInput[] inputs = operation.getInputs();
/* 503 */ if (inputs.length != 1) {
/* 504 */ throw new WSException("WSDl 1.1 only supports In-Only, and In-Out MEPS.");
/* */ }
/* 506 */ buffer.append("<input>");
/* 507 */ appendUnknownExtensibilityElements(buffer, inputs[0]);
/* 508 */ appendSOAPBinding(buffer, wsdlInterface, operation, inputs);
/* 509 */ buffer.append("</input>");
/* */
/* 511 */ if (!"http://www.w3.org/2004/08/wsdl/in-only".equals(getBindingOperationPattern(operation)))
/* */ {
/* 513 */ buffer.append("<output>");
/* 514 */ WSDLBindingOperationOutput[] outputs = operation.getOutputs();
/* 515 */ appendSOAPBinding(buffer, wsdlInterface, operation, outputs);
/* 516 */ buffer.append("</output>");
/* */ }
/* */
/* 520 */ WSDLInterfaceOperationOutfault[] faults = interfaceOperation.getOutfaults();
/* 521 */ if (faults == null)
/* */ continue;
/* 523 */ for (WSDLInterfaceOperationOutfault fault : faults)
/* */ {
/* 525 */ String n = "name='" + fault.getRef().getLocalPart() + "'";