Skip to content

fabiomurer/jolieSoapCamunda

Repository files navigation

Call jolie microservice from camunda with soap connector

create project

npm init jolie

generate wsdl

jolie2wsdl --namespace sum --portName CalculatorSOAPPort --portAddr socket://localhost:5656  --outputFile sumWsdl.wsdl main.ol

test with soapui

open the sumWsdl-soapui-project.xml soapui project file or create a new from sumWsdl.wsdl

connect to camunad (soap connector)

See 'diag.bpmn' in camunda modeler

  • service url http://localhost:5656
  • soap body (XML compatible json)
    {
    "sum": {
            "x": x,
            "y": y
        }
    }
    it sends x and y process variables to jolie microservice
  • output mapping:
    • result variable soapresopnse: soapresponse has the content
      {"Envelope":{"Body":{"sumResponse":{"x":"8"}}}}
    • or with variable mapping:
      {
          sum: response.Envelope.Body.sumResponse.x
      }
      set the process variable sum to "8"

About

call jolie microservice from camunad with soap connector

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors