I have an OSB service which is calling an external API.
For PUT and POST operation calls with no body, I am getting the following error.
<con:details><con1:ReceivedFaultDetail xmlns:con1="http://www.bea.com/wli/sb/stages/transform/config"><con1:faultcode xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Server</con1:faultcode><con1:faultstring>REST Business Service returned HTTP response with status 411</con1:faultstring><con1:detail><err:PayloadDetail xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:err="http://www.bea.com/wli/sb/errors"><err:text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML></err:text></err:PayloadDetail></con1:detail><con1:http-response-code>411</con1:http-response-code><con1:response-headers xsi:type="http:HttpResponseHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><http:Connection>close</http:Connection><http:Content-Length>344</http:Content-Length><http:Content-Type>text/html; charset=us-ascii</http:Content-Type><http:Date>Thu, 05 Nov 2020 12:18:03 GMT</http:Date><http:Server>Microsoft-HTTPAPI/2.0</http:Server></con1:response-headers></con1:ReceivedFaultDetail></con:details>
Chunked mode is disabled on Business Service. The API works fine when tested directly. Ive tried including the Content-Length field but still getting the same error. I've tried adding Content-Length in the transport headers, by inserting individually, by replace action. None of the methods's worked.
I am using the rest adapter of OSB 12c. Any pointers regarding this is apreciated.