on 01-13-2015 10:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.