Properties properties = manager.getClientConfig().getHomeNode().getProperties();
properties.put("keyDomain", "riftsaw.jboss.org");
properties.put("nodeName", "localhost");
properties.put("businessName", "redhat-jboss");
BPEL2UDDI bpel2UDDI = new BPEL2UDDI(clerk, new URLLocalizerDefaultImpl(), properties);
Definition wsdlDefinition = rw.readWSDL("uddi_data/bpel/riftsaw/HelloWorld.wsdl");
QName serviceName = new QName("http://www.jboss.org/bpel/examples/wsdl", "HelloService");
String portName = "HelloPort";
URL serviceUrl = new URL("http://localhost:8080/helloworld");
bpel2UDDI.register(serviceName, portName, serviceUrl, wsdlDefinition);
System.out.println("DONE");
bpel2UDDI.unRegister(serviceName, portName, serviceUrl);
}