With the following code I can access the hello-bpel-process:
public void dii()
| {
| try {
| URL wsdlURL = new URL("http://localhost:8080/hello/greeter?wsdl");
| String targetNamespace = "http://jbpm.org/examples/hello";
| QName portName = new QName(targetNamespace,"GreeterPort");
| QName serviceName = new QName(targetNamespace, "HelloWorldService");
| QName operationName = new QName(targetNamespace, "sayHello");
|
| ServiceFactory serviceFactory = ServiceFactory.newInstance();
| Service service = serviceFactory.createService(wsdlURL, serviceName);
| Call call = (Call)service.createCall(portName);
| call.setOperationName(operationName);
|
| Object[] arguments = new Object[] {"Olive"};
| Object result = call.invoke(arguments);
| System.out.println(""+result);
| } catch (Exception e) {
| e.printStackTrace();
| }
| }
Best regards
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996427#3996427
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996427
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user