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_spcAttachment_spcId field.

  • URI: http://ServerName:port/siebel/v1.0/service/RetrieveAttachmentService/QueryPage

  • HTTP Method: POST

  • Content-Type: application/xml

  • Authorization: Basic

  • Request body:

<?xml version="1.0" encoding="UTF-8" ?>
<body>
    <LOVLanguageMode>LDC</LOVLanguageMode>
    <SiebelMessageIn>
        <MessageId></MessageId>
        <MessageType>Integration Object</MessageType>
        <IntObjectName>AttachmentDocIO</IntObjectName>
        <IntObjectFormat>Siebel Hierarchical</IntObjectFormat>
        <ListOfAttachmentDocIO>
            <SR_spcResolution_spcItem>
                <ResFileName></ResFileName>
                <ResFileExt></ResFileExt>
                <Id>= '88-21J1QM'</Id>
                <Res_spcAttachment_spcId></Res_spcAttachment_spcId>
            </SR_spcResolution_spcItem>
        </ListOfAttachmentDocIO>
    </SiebelMessageIn>
</body>
  • Response body:
    <?xml version="1.0" ?>
    <response>
        <IntObjectFormat>Siebel Hierarchical</IntObjectFormat>
        <MessageId></MessageId>
        <IntObjectName>AttachmentDocIO</IntObjectName>
        <MessageType>Integration Object</MessageType>
        <SR_spcResolution_spcItem>
            <ResFileExt>txt</ResFileExt>
            <Res_spcAttachment_spcId> //5XAHcAMABLAEkAQwBCADcARADkATABBADAASwBJAEMAQgA3AEQAUQBvAGcASQBDAEEAZwBJAGwAUgMABLAFgAUQAwAEsADQAKAA= </Res_spcAttachment_spcId>
            <Id>88-21J1QM</Id>
            <ResFileName>SGService_DemoHu45</ResFileName>
        </SR_spcResolution_spcItem>
    </response>