#58 XML element text not properly encoded


When a datatype does not match any of the regular
expressions a generic serialization function is used to
serialize the data. Since the form of the data is not
know, it may contain various characters that require
escaping. This is definitely true of the anyURI support
as & characters need to be properly encoded.

I have attached a patch to fix the issue by simply
calling SOAP::Utils::encode_data on any of the methods
that are generated through AUTOLOAD.


  • Martin Kutter

    Martin Kutter - 2007-10-04
    • priority: 5 --> 6
  • Martin Kutter

    Martin Kutter - 2008-04-17

    Logged In: YES
    Originator: NO

    Hi Michael,

    ...years later. The behaviour you suggest might lead to double escaping. As the user is free to provide additional serialization functions (which is documented in the pod), I'd rather suggest this way.

    Thanks for reporting,


  • Martin Kutter

    Martin Kutter - 2008-04-17
    • assigned_to: byrnereese --> kutterma
    • status: open --> closed-rejected

Log in to post a comment.