#72 WSDL Generated Functions do not decode Base64 Datatype

Encoding (11)
Ryan Troll

WSDL generated functions that leverage Base64 encoding
do not decode the response.

Consider the following WSDL:


the function "echoViaBase64()" accepts a string that
has been base64 encoded; reverses it, and returns the
reversed string B64 encoded.

SOAP::Lite correctly takes the argument being
submitted, base64 encodes it, and submits it to the
service. However, the response is not base64 decoded:
the response string is returned directly to the caller.


  • Ryan Troll

    Ryan Troll - 2005-02-23
  • Ryan Troll

    Ryan Troll - 2005-02-23

    Logged In: YES

    The attached file demonstrates this bug.

    Execute the script with the "-d" flag to see the raw data
    that's submitted to the service, and the actual response.
    The data submitted to the server has been correctly B64
    encoded. The response is a b64 encoded string; but the data
    returned to the caller has not been b64-decoded: it's the
    string the server returned.

  • Ryan Troll

    Ryan Troll - 2005-02-23
    • labels: --> Encoding
  • Ryan Troll

    Ryan Troll - 2005-02-25

    Logged In: YES

    Note: As of this time, the demo service will not respond
    with B64 data; due to bug #1149481.

  • Martin Kutter

    Martin Kutter - 2007-10-05
    • priority: 5 --> 4

Log in to post a comment.