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.

    1. connector.createRequest()
    2. .url("http://camunda.org/soap")
    3. .contentType("application/soap+xml")
    4. .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:

    1. HttpRequest request = http.createRequest();
    2. request.setRequestParameter("method", "GET");
    3. request.setRequestParameter("url", "http://camunda.org");

    Response

    After the response was processed it should be closed.

    1. 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