I have configured a web service connector. When I tested the create account operation from postman, content-length is mandatory for creation and that value is dynamic as per the body.
How do we calculate the content-length in sailpoint?
I wrote a beforeOperation rule to add the header as per below code but still it is giving in 411 error code. Please provide me any thoughts.
Avoid setting Content-Length manually.
Java HTTP clients (used internally by SailPoint) typically calculate and set this automatically. Manually setting it can conflict with internal behavior.
Ensure body is a raw JSON string, not a Map.
If you’re using:
Map currentBody = requestEndPoint.getBody();
Convert it to a JSON string using a library like Gson: