// create the WSDL interface
Definition definition = factory.createWSDLDefinition
( resourceSet, new QName( "http://www.ibm.com/task/test/", "test" ) );
// create a port type
PortType portType = factory.createPortType( definition, "doItPT" );
// create an operation; the input and output messages are of type String:
// a fault message is not specified
Operation operation = factory.createOperation
( definition, portType, "doIt",
new QName( "http://www.w3.org/2001/XMLSchema", "string" ),
new QName( "http://www.w3.org/2001/XMLSchema", "string" ),
(Map)null );