throws WSDLException {
javax.wsdl.Operation operation = definition.createOperation();
operation.setName(op.getName());
operation.setUndefined(false);
Input input = definition.createInput();
Message inputMsg = definition.createMessage();
String namespaceURI = definition.getQName().getNamespaceURI();
QName inputMsgName = new QName(namespaceURI, op.getName());
inputMsg.setQName(inputMsgName);
inputMsg.setUndefined(false);
definition.addMessage(inputMsg);
List<ElementInfo> elements = null;
// FIXME: By default, java interface is mapped to doc-lit-wrapper style WSDL
if (op.getWrapper() != null) {
// Generate doc-lit-wrapper style
inputMsg.addPart(generateWrapperPart(definition, op, helpers, wrappers, true));
} else {
// Bare style
int i = 0;
for (DataType d : op.getInputType().getLogical()) {
inputMsg.addPart(generatePart(definition, d, "arg" + i));
elements = new ArrayList<ElementInfo>();
ElementInfo element = getElementInfo(d.getPhysical(), d, null, helpers);
elements.add(element);
QName elementName = ((XMLType)d.getLogical()).getElementName();
wrappers.put(elementName, elements);
i++;
}
}
input.setMessage(inputMsg);
operation.setInput(input);
if (!op.isNonBlocking()) {
Output output = definition.createOutput();
Message outputMsg = definition.createMessage();