You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST Adapter With Attachment Cannot have JSON Response

edited Dec 11, 2019 3:45PM in Integration 6 comments

Content

We have REST adapter integration where we configured the response to have attachments.

Also, the response includes json response as summary of the attachment file contents.

Everything works fine and as expected, we're able to receive the attachment file successfully at the response. But the response is not json, it's multipart/mixed.

For example:

<data contentType="multipart/mixed; charset=UTF-8" contentLength="390"><![CDATA[{  "status" : "1"}]]></data>

At the REST adapter wizard, at Response tab, once we choose "Accept attachments from response", the only available media types are only "multipart/mixed" and "multipart/form-data". And this explains why we receive the response like that.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!