How to convert a binary response variable from a SOAP Web service?
Hi all, For a project, I am implementing a SOAP Web service call. The operation results in a binary variable, but actually it is an XML document containing a String value. I already read the following post https://forum.mendix.com/link/questions/87818, these answers doesn't help because I am dealing with a variable instead of an attribute. Does anyone have an idea how I can convert this binary variable? Thanks!
Timna van der Horst
I have the same problem and I manged to solve it by opening the wsdl or the xml file and change data type of the response element of the related function, in my case it was base64binary and changed to string
What are you expecting to get back, is the binary data by any chance an image?
If so you could store the string in a field and then use the base64decoder from the community commons module to decode the data