2 Replies Latest reply on Jan 30, 2018 5:23 AM by max275

    jBPM and SOAP WebService

    max275

      Hello,

       

      for few days now  I am trying to call WebService form my jBPM process.

      Diuring running the process I'm getting the error as follows:

      Unexpected error occurred: Unexpected HTTP response code when requesting URI 'http://localhost:8080/kie-server/services/rest/server/containers/soap_tst_mm_1.0.1/processes/soap_tst_mm.call_ws/instances'! Error code: 500, message: "Unable to create response: [soap_tst_mm.call_ws:3 - WS:2] -- java.lang.ClassCastException: Cannot cast org.apache.cxf.wsdl11.WSDLManagerImpl to org.apache.cxf.wsdl.WSDLManager"

       

      Unable to complete your request. The following exception occurred: "Unable to create response: [soap_tst_mm.call_ws:3 - WS:2] -- java.lang.ClassCastException: Cannot cast org.apache.cxf.wsdl11.WSDLManagerImpl to org.apache.cxf.wsdl.WSDLManager".
      I've defined WorkItem handler as follows:

       

      NameIdentifierResolver typeParametersRemove

      WebService

      new org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler(ksession)

      mvel

       

      I'm usuing the demo version of jBPM. I installed it on Ubuntu using jBPM installer (jBPM 7.5, WildFly 10.1.0)
      I've noticed that in jbpmthere is CXF in version 3.1.6 and i WildFly version 3.1.12.
      I was trying to delete cxf from BPM runtime but it didn't help.
      Could anybody help me? What am I doing wrong?
      Best regards,
      Marek
        • 1. Re: jBPM and SOAP WebService
          abhijithumbe

          It looks like you are trying to start process instance from kjar/project which is deployed on kie-server, am I correct ? To call external webservice are you using REST service task in your jBPM process?

          Are you able to start process using curl utility, like as:

           

          curl -X POST  -u 'user:password' -H 'Content-type: application/json'  'http://localhost:8080/kie-server/services/rest/server/containers/soap_tst_mm_1.0.1/processes/soap_tst_mm.call_ws/instances'

          • 2. Re: jBPM and SOAP WebService
            max275

            Hello,

             

            I suppose you are right. I developed simple process (1 task calling WS) with web designer. I have managed to deploy it into server, but I could not run it.

            Starting process with curl didn't succed - web console returns error 404 - maybe there is no kie-server, for now I'm just using jbpm-console

             

            I'm not using REST Service task - this one works fine, I am using WS Service Task, which is nto working.

            As I mentioned before In kie-deployment-descriptor I defined work item Handler new org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler(ksession).