on 01-26-2012 10:49 AM
Hi Guys,
I need to build a webservice that returns a .jpg picture as an attachment to the SOAP messgae.
I have build a webservice to java proxy interface. But i*m stuck, because the MessageAttachment is not working on PI 7.11 yet.
Any of you have a good idea of how to implement a webservice that returns a binary file on PI ? it should be done as a syncrhon interface.
I would hate to ask our microsoft gyus to make the webservice for me .-)
Thanks
Jens
Hi, you can return the image as base64 binary in the message payload. Define a field of type xsd:base64Binary and a field for filename. The receiver can decode the content and save the file, or as in your case attach to a SOAP message.
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, my first thought was not correct... Do as Martin suggested, it should work fine for you.
Edited by: Grzegorz Glowacki on Jan 26, 2012 12:04 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.