cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Calling Document Extraction API from Integration Suite

ildar_dlw
Explorer
0 Kudos
802

Hi All,

We are trying to develop the interface in the Integration Suite, which at some moment sends a document for the Document Information Extraction service via the following API:

https://xxx.cfapps.xx.hana.ondemand.com/document-information-extraction/v1/document/jobs

One of the technical difficulties is the fact that Integration Suite doesn't fully support formdata requests.

After some attempts the following response is received:

{"error": {"code": "E30", "message": "Cannot process file of content type.", "details": [{"code": "0", "message": "Content type: None"}]}}

Request has a Content-Type header with the value:

multipart/form-data; boundary=--cpi

Could you please share some experience or tips and tricks to use of the API from the Integration Suite? Or if you have success stories, would be happy to hear that.

 

Thanks a lot!

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Bob0001
Product and Topic Expert
Product and Topic Expert

You need to implement the multi-part upload with custom code. There, is also a content package which contains such implementation. This can be used as starting point. Content: https://api.sap.com/package/SAPAIBusinessServiceDocumentInformationExtraction/integrationflow

ildar_dlw
Explorer
0 Kudos
Thanks! That's indeed looks helpful, I'll check in details.

Answers (0)