try {
DynamicServiceCreator factory = new DynamicServiceCreator(
"http://129.79.246.108:8080/axis2/services/ServiceCreator?wsdl");
String code = this.javaCodeTxtArea.getText();
factory.createService(code);
URLComponentRegistry registry = null;
Thread.sleep(10000);
registry = new URLComponentRegistry(new URI("http://129.79.246.108:8080/axis2/services/"
+ getClassName(code) + "?wsdl"));
ComponentRegistryLoader.getLoader(this.engine, RegistryConstants.REGISTRY_TYPE_URL).load(registry);
Node newNode = this.engine
.getGUI()
.getGraphCanvas()
.addNode(
((ComponentTreeNode) registry.getComponentTree().getFirstLeaf()).getComponentReference()
.getComponent(), this.node.getPosition());
List<DataPort> inputPorts = newNode.getInputPorts();
Graph graph = this.engine.getGUI().getGraphCanvas().getGraph();
for (int i = 0; i < inputPorts.size(); ++i) {
graph.addEdge(this.node.getInputPort(i).getFromPort(), inputPorts.get(i));