AnsweredAssumed Answered

calling a Webservice

Question asked by arno1 on Apr 9, 2011
Latest reply on Apr 26, 2011 by peterwanschou
Hello,

I'm trying to call a simple webservice by using an Activiti servicetask.
It simply doesn't work.
Here's the code of my WS:

HelloWorldService.java:

package serverside.service;

import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;

@WebService
@SOAPBinding(style=Style.RPC)

public class HelloWorldService{
   
   public String showMessage(){
      return "Hello, here's the WebService!";
   }
}



HelloWorldServiceServer.java:

package serverside.service;

import javax.xml.ws.Endpoint;


public class HelloWorldServiceServer {

   /**
    * @param args
    */
   public static void main(String[] args) {
      HelloWorldService server = new HelloWorldService();
      Endpoint endpoint = Endpoint.publish("http://localhost:8029/helloworld", server);
   }

}


So, the WS itself is okay, I can see the wsdl file if I'm calling http://localhost:8029/helloworld?wsdl.

But I've tried to call the method of this simple service by deploying and calling the accordant process definition (see one of the screenshots).
I get an exception which tells me that no processes are deployed by my used processId.
So there must be a problem with the deployment or not? I really have no idea since I'm not an Activiti expert….

I supported three screenshots (one of my bpmn20.xml file which contains my process definition, one of the java code where I want to deploy and to work with the definition and one of the exception).

So, can anybody help me to correct the failure? I just want to call my showMessage method from the WS by using an webservice task from Activiti and want to see the string result in my console output of my calling java program.

I hope somebody is able to help me…
Thanks!

Outcomes