I have a SOAP client in PHP that calls WSDL service calls. One of the functions returns base64binary data. I tried to decode it with no luck.
base64_decode ($ encoded_base64data) will not work. I tried using base_convert () and mv_convert_encoding () with various parameters, but could not get the correct result.
Encoded result data starts with:
`I %&/m {J J t `$Ψ@ iG
(data is much longer, this is just a small part of the line)
Any idea how this can be done?
thanks
EDIT
I extended SoapClient with a new __doRequest () method to verify that the data received is the correct base64 string. I got the correct base64 encoded string, and the result shown above is a decoded answer.
Anyway, the string was automatically decrypted by SoapClient from base64 to binary (as suggested by @hakre), so I only need to deal with the binary answer.
Now I need to decode the binary string into something that will look like a readable format. The final answer should contain a way out of Georgia, so I'm trying to figure out the source encoding (but that's another question).
soap wsdl php encoding base64
galchen
source share