chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] xml-rpc-client response parsing (+patch)


From: Hans Bulfone
Subject: [Chicken-users] xml-rpc-client response parsing (+patch)
Date: Fri, 9 Sep 2005 13:37:34 +0200
User-agent: Mutt/1.5.6+20040907i

hi,

i'm new to this list and also rather new to chicken and scheme in
general.

i've played with the xml-rpc egg recently and wanted to use it against
an xml-rpc server implemented with ruby-on-rails.
i noticed that fault responses from rails cannot be parsed by
xml-rpc-client because the 'faultCode' is returned with type
i4 instead of int (which is expected by xml-rpc-client).
according to the xml-rpc specs, both types are equivalent.

also, the specs say that two structs with the same fields in
different order are the same, so i thought it would be better
to parse the fault struct in a loop.

i have attached a patch that fixes both, i hope you like it :)
it works for me but i've not tested it thoroughly.

thanks for your work on chicken, i really like it!

regards,
hans.

Attachment: xml-rpc.diff
Description: Text document


reply via email to

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