List<WSDLPart> parts = message.getParts();
if (parts.size() == 0)
out.print("void ");
else {
Type type = parts.get(0).getType();
type.setEmit(false);
out.print(type.getJavaType(0));
out.print(" ");
}
//XXX more output parts?
}
out.print(getName());
out.print("(");
if (_inputs != null && _inputs.size() > 0) {
WSDLOperationInput input = _inputs.get(0);
WSDLMessage message = input.getMessage();
List<WSDLPart> parts = message.getParts();
for (int i = 0; i < parts.size(); i++) {
Type type = parts.get(i).getType();
type.setEmit(false);
int j = 0;
for (String name = type.getArgumentName(j);
name != null;
name = type.getArgumentName(j)) {
if (j > 0)
out.print(", ");
out.print("@WebParam(name=\"");
out.print(name);
out.print("\") ");
String javaType = type.getJavaType(j);
out.print(javaType);
out.print(" arg" + j);
j++;
}
}
//XXX more input parts?
}
out.print(")");
if (_faults != null && _faults.size() > 0) {
out.println();
out.pushDepth();
out.print("throws ");
WSDLOperationFault fault = _faults.get(0);
WSDLMessage message = fault.getMessage();
List<WSDLPart> parts = message.getParts();
for (int i = 0; i < parts.size(); i++) {
Type type = parts.get(i).getType();
type.setEmitFaultWrapper(true);
if (i > 0)
out.print(", ");
out.print(type.getFaultWrapperClassname());
}
out.popDepth();
//XXX more fault parts?