Posted: 28 Jan 2016 10:19 EST Last activity: 28 Jan 2016 10:57 EST
How to map rest service response which is having content type as *.*
we have a requirement to to get the content of the file through the Rest Service by passing document id as input.As a part of response it will return the file (it may be any format). i.e the response content-type is file. can any one help me how to parse the response file content in connector.
Saleem, if the service is returning the file as an attachment, its content will be available on a named page called pyResponseAttachmentPage of class Data-ServiceMessage. This page contains two value list properties, pyAttachValues (contains list of file contents) and pyAttachNames (contains list of file names). For more information, please refer to this PDN article: https://community.pega.com/sites/default/files/help_v718/procomhelpmain.htm