Skip to Content
1

CPI / HCI OData Adapter Batch Request - Change line feed (LF) to carriage return line feed (CRLF)

Feb 01 at 08:13 AM

123

avatar image

Hi,

I'm calling an OData service via batch in SAP Cloud Platform Integration, but the call fails with HTTP 400 Bad request.
The reason is, that the OData service expects carriage return line feed, but the CPI OData Adapter creates a batch request only with line feed.

Is there a way to change the line break to CR LF?

Thank you very much!

com.sap.gateway.core.ip.component.odata.exception.OsciException:  : 400 : HTTP/1.1

OData Method             :   BATCH
Request URI              :   POST https://*****.hana.ondemand.com/service/odata.srv/$batch HTTP/1.1
Request Headers          :   
  Authorization            : Basic ********
  Content-Type             : multipart/mixed;boundary=batch
  x-csrf-token             : ********
  Cookie                   : JSESSIONID               = COULD_NOT_BE_RESOLVED; Path=/service; Secure; HttpOnly;
                             JTENANTSESSIONID_a3bb64753= ********;
                              Domain                  = ********; Path=/; Secure; HttpOnly;
                             BIGipServer*****.hana.ondemand.com= ********; path=/; httponly; secure;

HTTP Status Line         :   HTTP/1.1 400 
Response Headers         :   
  DataServiceVersion       : 1.0
  Date                     : Tue, 30 Jan 2018 12:13:31 GMT
  Content-Type             : application/xml
  Content-Length           : 213
  X-Cnection               : close
  Server                   : SAP
  Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
, cause: com.sap.gateway.core.ip.component.odata.exception.OsciException:  : 400 : HTTP/1.1

request-batch.png (20.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers