cancel
Showing results for 
Search instead for 
Did you mean: 

Comp mime type 'text/plain;charset=utf-8' instead ''

05-30-2024 8:34 AM
826 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

hi Team,

I am new to SAP and learning about SAP http interface APIs and RSCMSTH2 report execution using Tcode SE38.. 
I am facing an issue while sending a response for /info and /get API for a 0 bytes component file for a document.

abhishek_rangari_1-1717050314330.png

as you see in above screenshot,
1. for a /info API for DOC_0 (which is 0  bytes document but actual comp data length is 2) is giving an error message for mime type, it is expecting that mime type should be empty,
2. for a /get API for DOC_0 which is again for 0 bytes component, gives an error message for mime type where it is expecting " " (whitespace in mime type)

 From codebase standpoint I tried sending no content type for /info request then execution of report RSCMSTH2 is not working,
And we can not send empty content type (mime type) with http headers from codebase which is restricting us to not send whitespace as it is expected for /get API.

I need your help on this mime type which SAP is expecting and how can we send it to SAP from our content server. 
Also do we need to send response as 200 OK for 0 byte component document or something else.

Please help me to fix this issue, or let me know if I need to check something else to get resolve this given issue.

Note: we are implementing it for 3rd party content server, and implementing all SAP HTTP server interface API by ourselves.

 

Thanks,
Abhishek

0 Likes

Accepted Solutions (0)

Answers (0)