Call BPEL from a Java program

I created a BPEL process that takes three integer variables as input. I need to test it with different parameters passed from a Java program. I use openESB for all this.

My question is how to call BPEL from java code and how to pass arguments and return the result from the BPEL process?

+7
source share
1 answer

The BPEL process is typically deployed as a web service (usually SOAP) with a specific endpoint. Do you know the endpoint where it is available?

Once you have this endpoint, you can call it in java like a regular web service. (I would suggest starting by calling soapUI , it will be easier if you just want to check the BPEL process)

As for the features related to openESB, I do not know. You should look at the documentation for deployment specifics.

Change after reply.

So you have an endpoint with wsdl.

First, to check the process itself:

  • install soapUI
  • look doc
  • you basically need to create a new project, it will ask wsdl,
  • give your request, he will create a sample request, fill it with data and
  • to fulfill. Until it returns with some data, you will have a problem. try to play or ask some more questions.

Now if you need to create a java client.

  • Google a little "SOAP web service client"
  • There are several libraries around: axis2, Apache CXF ...
  • for example, with CXF, look here: http://cxf.apache.org/docs/how-do-i-develop-a-client.html basically consists in generating some java code based on your wsdl using some tool and then writing a little more code to actually call the service using the data you want

Since you could write a bpel process, you should be able to handle this. Again: google or ask a question :)

again, hope this helps.

+9
source

All Articles