Invoking a Business Service to Insert an Attachment
In this example, the business service RetrieveAttachmentService contains the
Insert 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. The attachment contents are provided as Base64 encoded string value to the
Res Attachment Id field. When you invoke the Insert method, the attachment
with the file contents provided in the Res Attachment Id field is inserted.
The response contains the attachment ID.
URI: http://ServerName:port/siebel/v1.0/service/RetrieveAttachmentService/Insert
HTTP Method: POST
Content-Type: application/json
-
Transfer-Encoding: chunked
Authorization: Basic
Request body:
{
"body": {
"LOVLanguageMode": "LDC",
"SiebelMessageIn": {
"IntObjectName": "AttachmentDocIO",
"ListOfAttachmentDocIO": {
"SR Resolution Item": {
"Id": "11111111",
"ResFileExt": "txt",
"ResFileName": "ServiceREVUT2_DemoHuge_UN11",
"Res Attachment Id": "//5XAHcAMABLAEkAQwBCADcARABRAG8AZwBJAEMAQQBnAEkAbABSAHAAZ..."
}
}
}
}
}
-
Response body:
{ "SiebelMessageOut":{ "IntObjectFormat":"Siebel Hierarchical", "MessageId":"", "IntObjectName":"AttachmentDocIO", "MessageType":"Integration Object", "SR Resolution Item":{ "Id":"88-305ZQO", "Mod Id":"0" } } }