6 Replies Latest reply on Nov 17, 2011 2:53 PM by dme

    How to integrate web services in jBPM5

    ram.biradar

      I have the web services developed and deployed in jboss server. I have the wsdl url as well as the end point url.

      I want to integrate the operations defined in my wsdl to be invoked through jBPM.

      Please can any one help on the same issue.

        • 1. Re: How to integrate web services in jBPM5
          salaboy21

          Hi Ram,

          If you want to do that you can use the concept of WorkItemHandler to do the web service call.

          There is a generic WorkItemHandler to call web services, but I strongly recommend you to read the documentation and try to implement a simple WorkItemHandler that uses an Stub of your web service to interact.

           

          Cheers

          • 2. Re: How to integrate web services in jBPM5
            ram.biradar

            Hi Mauricio,

                           Thank you very much for the reply. Is there any option that we can configure web services in ESB and access the same using jbpm. Is there any videos or documents which includes the steps to complete the configuration of web services in JBPM5.

            It will be really usefull to us.

             

             

            Regards,

            Ram

            • 3. Re: How to integrate web services in jBPM5
              salaboy21

              Hi Ram,

              What kind of web service do you have? Which ESB are you using?

              Can you test your web service creating a Java Client? If you can do this you need to wrap that java client inside an implementation of the WorkItemHandler interface. This specific implementation that will call your web service can be attached to a Service Task inside your BPMN processes.

               

              Cheers

              • 4. Re: How to integrate web services in jBPM5
                sridhar532

                Hi Ram / Mauricio,

                 

                Can you share me a sample work handler and BPMN process file regarding how to call a web service from service task. Thanks

                • 5. Re: How to integrate web services in jBPM5
                  salaboy21

                  Hi Sridhar,

                  You should do your homework, that's the best way to learn. If I share a bpmn process with a call to a web service you will need also the web service to test it and you will see that it's just calling the stub of the web service inside an implementation of the WorkItemHandler interface. Try to do that and get back to us if you have any trouble, we will be glad to help.

                  Cheers

                  • 6. Re: How to integrate web services in jBPM5
                    dme

                    Hi Mauricio,

                     

                    You mentioned that there is a Generic WorkItemHandler to call web services. Could you please point me to that, I have implemented one myself using the WorkItemHandlers which serves as a generic webservice handler to be used across various processes. However if there is one that comes with jBPM I would like to see if that fits my needs.

                     

                    Thanks.