HTTP-Connector POST REST

Hello,

I’m searching for a short example for using a HTTP-Connector to request an external REST-Server with a POST, not GET-request. The problem I have is that the http-connector doesn’t transfer the body-value to the external REST-Server. The GET-method is working without any problems.
Here is the snippet of my serviceTask :

<camunda:connector>
      <camunda:inputOutput>
        <camunda:inputParameter name="url">http://192.168.50.70:8080/rest/rest/request/insert/</camunda:inputParameter>
        <camunda:inputParameter name="method">POST</camunda:inputParameter>
        <camunda:inputParameter name="headers">
          <camunda:map>
            <camunda:entry key="CONTENT-TYPE">application/json</camunda:entry>
          </camunda:map>
        </camunda:inputParameter>
        <camunda:inputParameter name="body">{"test":"test"}</camunda:inputParameter>
      </camunda:inputOutput>
      <camunda:connectorId>http-connector</camunda:connectorId>
    </camunda:connector>

Thanks you for your help!
Greetings

2 Likes

Wow thanks for the rapid reply. Your tip was very helpful!
Thanks a lot!
Best regards,
Vitali

Thanks, worked for me.