throw new IllegalArgumentException("Interface " + itfname + " doesn't have operations");
int len = ops != null ? ops.length : 0;
for (int i = 0; i < len; i++)
{
WSDLInterfaceOperation op = ops[i];
WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(wsdl, op);
//TODO: Take care of multiple outputs
String returnType = null;
StringBuilder paramBuffer = new StringBuilder();
WSDLInterfaceOperationInput input = WSDLUtils.getWsdl11Input(op);
WSDLInterfaceOperationOutput output = WSDLUtils.getWsdl11Output(op);
if (isDocument())
{
returnType = appendDocParameters(paramBuffer, input, output, bindingOperation);
}
else
{
returnType = appendRpcParameters(paramBuffer, op, output, bindingOperation);
}
if (returnType == null)
returnType = "void";
buf.append(" public " + returnType + " ");
buf.append(ToolsUtils.firstLetterLowerCase(op.getName().getLocalPart()));
buf.append("(").append(paramBuffer);
buf.append(") throws ");
//Generate the Exception Types
WSDLInterfaceOperationOutfault[] outfaults = op.getOutfaults();
for (int k = 0; k < outfaults.length; k++)
{
WSDLInterfaceOperationOutfault fault = outfaults[k];
QName faultName = fault.getRef();