Need help in implementing Connect-REST (Post Method for sending Document)
We have requirement to implement Connect-Rest to post documents over the web service for 3rd party application, and 3rd party Rest service implemented in such away that we have to send 3 parameters in request body itself as a multipart.
we have implemented solution using java code and its working fine as expected when we run through eclipse, but we are facing issues when we try to implement same java code in activity java step. we are expecting assistance on implementing this with either Connect-REST or using JAVA step in actvity.
When building the outbound message content for a REST connector, PRPC looks for a top-level clipboard page named pyRequestAttachmentPage of type Data-ServiceMessage. If it finds the page in the clipboard, it adds attachments to the outgoing message for every string value found in the pyAttachValues Value List property on the page. Each string is assumed to be a Base64-encoded representation of a binary data value. This page must be created and populated prior to invoking the connector.
You should create pyRequestAttachmentPage of Data-ServiceMessage class.
The generation of multipart request depends on the four properties which is present in Data-ServiceMessage class
So the sequence of operation would be
1.Get the file from database using obj-open-by handle.
2.Create a page pyRequestAttachment.
3.Set its properties(mentioned above) value with the value of file (which we got in step 1)