The SOAP connector extends the Camunda Connect HTTP connector which usesthe Apache HTTP client in the default implementation. To read about default and custom client configuration,please see the corresponding section in the HTTP connector docs.
Request
The SOAP HTTP connector can be used to create a new request, set a URL, content typeand payload.
connector.createRequest()
.url("http://camunda.org/soap")
.contentType("application/soap+xml")
.execute();
Besides the configuration methods also a generic API exists toset parameters of a request. The following parameters areavailable:
This can be used as follows:
HttpRequest request = http.createRequest();
request.setRequestParameter("method", "GET");
request.setRequestParameter("url", "http://camunda.org");
Response
After the response was processed it should be closed.
response.close()
Besides the response methods a generic API is providedto gather the response parameters. The following parametersare available:
Parameter | Description |
---|---|
statusCode | Contains the status code of the response |
headers | Contains a map with the HTTP headers of the response |
response | Contains the response body |