on 03-05-2018 6:17 AM
Hi Experts ,
I have a requirement , Third-party system sends us information in a multipart/mixed format which I need to read as a attachments.
Payload sample looks which receive from source looks like.
Content-Type:xmultipart/mixed; boundary=EXAMPLE-BOUNDARY; charset=UTF-8
--EXAMPLE-BOUNDARY
Content-Disposition:form-data; name="metadata"
Content-Type:application/x.pwg-rights_1.0+json
Content-Transfer-Encoding:8bit
{
"journal_id" : 12345,
"manuscript" : {
"peer_review_system" :"JKC",
"id" : "22334",
"title" : "An<em>example</em> manuscript"
},
"corresponding_author" : {
"email" :"corresponding.author@example.com",
"government_employment" :"IN"
},
"licence" : {
"file" :"cid:7AD66DB9-8E6F-4E7B-8BE7-4986533A0016@gmail.com",
"origin_ip" :"1123.45.67",
"completed" :"1970-01-01T00:33:20Z"
},
"third_party_material" : {
"declaration" : "yes",
"permissions" : ["cid:D1DC4932-A79F-4F59-8C8A-EED5DD90D49D@gmail.com", "cid:2343E57E-7143-427E-B442-9F59D0DE2AA7@gmail.com"
],
"completed" :
"1970-01-01T00:50:00Z"
}
}
--EXAMPLE-BOUNDARY
Content-ID:<7AD66DB9-8E6F-4E7B-8BE7-4986533A0016@gmail.com>
Content-Disposition:form-data; name="file"; filename="licence.pdf"
Content-Type:application/pdf
Content-Transfer-Encoding:binary
...contentsof 7AD66DB9-8E6F-4E7B-8BE7-4986533A0016...
--EXAMPLE-BOUNDARY
Content-ID:<D1DC4932-A79F-4F59-8C8A-EED5DD90D49D@gmail.com>
Content-Disposition:form-data; name="file"; filename="letter-1.doc"
Content-Type:application/vnd.openxmlformats-officedocument.wordprocessingml.document
Content-Transfer-Encoding:binary
...contents of D1DC4932-A79F-4F59-8C8A-EED5DD90D49D...
--EXAMPLE-BOUNDARY
Content-ID:<2343E57E-7143-427E-B442-9F59D0DE2AA7@gmail.com>
Content-Disposition:form-data; name="file"; filename="letter-2.jpeg"
Content-Type:image/jpeg
Content-Transfer-Encoding:binary
...contents of 2343E57E-7143-427E-B442-9F59D0DE2AA7...
--EXAMPLE-BOUNDARY--
Based on above payload we need to read JSON payload with binary attachments and need to send different types attachments to target.how we can configure this requirement in PI level (ESR ,ID objects )?
Which adapter fits at sender side (HTTP/SOAP) to post data into PI and to read attachments?
Any suggestion for this requirements. Thanks in advance.
Best ,Shiva
Hi Experts , any solutions from your side?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shiva,
Have you checked below note:
2365727 - New Feature: Attachment support for PI REST Adapter
BR, Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.