Forum Discussion
Hi nmrao,
thank you for your reply!
The solution posted on stackexchange in the link above can not be adopted to my use case.
They advise, that SOAP UI only sends binary data in the request body if "Media Type" matches the "Content Type" attribute.
"Media Type" is the "Content-Encoding" HTML header.
What I need is, to send binary data in the request body without "Media Type"/"Content-Encoding" matching the "Content Type".
Maybe an example would be helpful:
This is a HTTP header setup the way I need it to work:
POST https://example.com/rest/provider/v1/masterData/landscape
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Encoding: application/gzip
Content-Length: 0
Host: c5244789devcacenterwa05130b1.int.sap.hana.ondemand.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Notice that the Content-Type and Content-Encoding have different values.
The problem with the request set up like this, SoapUi will send an empty body! The request body will not contain the data defined as attachment.
Now this is how SoapUi sends a request body that contains the data defined as attachment:
POST https://example.com/rest/provider/v1/masterData/landscape
Accept-Encoding: gzip,deflate
Content-Type: application/gzip
Content-Encoding: application/gzip
Content-Length: 0
Host: c5244789devcacenterwa05130b1.int.sap.hana.ondemand.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Notice that the Content-Type and Content-Encoding have the same values, as suggested on stackexchange.
Thank you again for your reply! I hope with the new information we can find a solution for this problem.
Related Content
Recent Discussions
- 21 days ago