Invoking a Business Service to Retrieve Attachment Contents
In this example, the business service RetrieveAttachmentService
contains the
QueryPage method, which accepts the AttachmentDocIO
integration object as
input. The AttachmentDocIO
integration object contains the SR
Resolution Item
integration component, which has a field named Res
Attachment Id
. When you invoke the QueryPage method, it returns the details of the
attachment such as ID, extension, size, and so on. The attachment contents are a Base64
encoded string value in the Res Attachment Id
field.
URI: http://ServerName:port/siebel/v1.0/service/RetrieveAttachmentService/QueryPage
HTTP Method: POST
Content-Type: application/json
Authorization: Basic
Request body:
{
"body": {
"LOVLanguageMode": "LDC",
"SiebelMessageIn": {
"IntObjectName": "AttachmentDocIO",
"ListOfAttachmentDocIO": {
"SR Resolution Item": {
"Id": "='88-1WV8GL'",
"ResFileExt": "",
"ResFileName": "",
"Res Attachment Id": ""
}
}
}
}
}
-
Response body:
{ "SiebelMessageOut":{ "IntObjectFormat":"Siebel Hierarchical", "MessageId":"", "IntObjectName":"AttachmentDocIO", "MessageType":"Integration Object", "SR Resolution Item":[ { "ResFileExt":"pdf", "Res Attachment Id":"DQpodHRwOi8vc2xBwcmVzY2hvb2wgc2V0dGluZ3Mu", "Id":"88-1WV8GL", "ResFileName":"Test" } ] } }