Input input = definition.createInput();
Message inputMessage = definition.createMessage();
Part inputPart = definition.createPart();
inputPart.setName("string");
inputPart.setTypeName(new QName("http://www.w3.org/2001/XMLSchema", "string"));
inputMessage.addPart(inputPart);
operation.setInput(input);
input.setMessage(inputMessage);
Output output = definition.createOutput();
Message outputMessage = definition.createMessage();
operation.setOutput(output);