emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-25 b6b47AF: Properly encode/decode base64Binary data in SOAP


From: Michael Albinus
Subject: Re: emacs-25 b6b47AF: Properly encode/decode base64Binary data in SOAP
Date: Mon, 14 Mar 2016 09:02:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Thomas Fitzsimmons <address@hidden> writes:

>> Btw, why is "originator" not a string? why xsd:base64Binary?  It's a
>> name of a human (or some other entity), so it's clearly text, no?
>
> Good question, I don't know.  Maybe Michael could comment here, since
> this was a Debbugs decision.

Debbugs.wsdl does not care about the argument types, it regards them as
xsd:anyType. Proper decoding is left to debbugs.el.

On the server side, debbugs.gnu.org, a perl script using SOAP::Lite is
responsible for encoding the attributes. IIUC, the internal package
SOAP::Serializer decides depending on the contents of a string, whether
it shall be xsd:base64Binary, or not. See:

    $self->typelookup({
           'base64Binary' =>
              [10, sub {$_[0] =~ /[^\x09\x0a\x0d\x20-\x7f]/ }, 
'as_base64Binary'],
    ...

> Thomas

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]