Skip to Content
avatar image
Former Member

Get picture of a product via Web Service

Hi Everyone,

We want to use the picture of a product via web service.

Now we are getting a url from the web service but it doesn´t work. It seems to be not the correct link from our system at the beginning:

<FileContentURI>http://vacili2.byd.sap.corp:50000/sap/ap/ds/wd/doc/00163E0888631ED4A6E0E10E8EC4608C/TestProduct.jpg?sap-client=009</FileContentURI>

If we add another file to “Attachments” Tab (Web address and Library) we get the correct url.

Has someone of you an idea how to get the correct url of the picture?

Thanks for any help!

Best regards, Anja

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 19, 2015 at 02:52 PM

    Hi,

    you have to use a second Interface "manageattachmentfolderin".

    With the UUID of your document you can request the binary file.

    <AttachmentFolder>

       <UUID>00163e07-46ca-1ed4-a6cd-ff057c7bc27c</UUID>

       <Document>

          <UUID>00163e07-46ca-1ed4-a6cd-ff057c7c227c</UUID>

       </Document>

    </AttachmentFolder>

    Request:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">

       <soapenv:Header/>

       <soapenv:Body>

          <glob:AttachmentFolderDocumentFileContentByIDQuery_sync>

             <AttachmentFolderDocumentFileContentSelectionByID>

                <DocumentUUID>00163e07-46ca-1ed4-a6cd-ff057c7c227c</DocumentUUID>

             </AttachmentFolderDocumentFileContentSelectionByID>

          </glob:AttachmentFolderDocumentFileContentByIDQuery_sync>

       </soapenv:Body>

    </soapenv:Envelope>

    Regards Felix

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Felix,

      thanks for your reply.

      I tried to use the interface "manageattachmentfolderin".

      It seems to be work, but I get no binary file:

      <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

         <env:Header/>

         <env:Body>

            <n0:AttachmentFolderDocumentFileContentByIDResponse_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"                xmlns:prx="urn:sap.com:proxy:LI2:/1SAI/TAS0B341812A5790523B9E5:804">

               <AttachmentFolderDocumentFileContent>

                  <BinaryObject/>

               </AttachmentFolderDocumentFileContent>

            </n0:AttachmentFolderDocumentFileContentByIDResponse_sync>

         </env:Body>

      </env:Envelope>

      Could you help again?

      Thanks, Anja

  • Jan 26, 2015 at 09:57 PM

    Hello,

    I do get the same weird behavior as Anja on this issue.

    I want to call Product images in another work center, but I only get a weird FileContent URI for each image. As Anja, it is a path to a byd.sap.corp system even thought it is a my******.sapbydesign.com when we open the image in the web browser.

    And I do not understand how to use this binary object in order to display an image.

    Any help on this Binary Object thing would be greatly appreciated.

    Thank you for your attention.

    Best regards.

    Jacques-Antoine Ollier

    Add comment
    10|10000 characters needed characters exceeded