[jboss-user] [JBoss jBPM] - Re: Problem testing Hello BPEL sample
zauberlehrling
do-not-reply at jboss.com
Wed Dec 27 06:46:11 EST 2006
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
More information about the jboss-user
mailing list