def.addNamespace("xsd", "http://www.w3.org/2000/10/XMLSchema");
def.addNamespace("w", "uri:hello");
Message inMsg = def.createMessage();
inMsg.setQName(new QName("http://porttype.test", "InMessage"));
inMsg.setUndefined(false);
Part part1 = def.createPart();
part1.setName("part1");
if (rpc) {
part1.setTypeName(new QName("http://www.w3.org/2000/10/XMLSchema", "int"));
} else {
part1.setElementName(new QName("uri:hello", "world"));