haxr (XML RPC) rendering of string values

Björn Bringert bringert at cs.chalmers.se
Sat Dec 3 11:54:33 EST 2005


Johannes Waldmann wrote:
> with haxr-20050621, I have trouble interfacing to Java.
> 
> When I build an XML RPC call with haxr, containing a struct, I get
> 
> <?xml version='1.0' ?>
> <methodCall
>   ><methodName
>     >vorlesungen</methodName
>   ><params
>     ><param
>       ><value
>         ><struct
>           ><member
>             ><name
>               >schule</name
>             ><value
>               ><string
>                 >HTWK Leipzig</string></value></member> ...
> 
> but when I build the same call with org.apache.xmlrpc, I get
> 
> <?xml version="1.0"?><methodCall><methodName>vorlesungen</methodName>
> <params><param><value><struct><member><name>matrikel</name><value>531</value></member>
> <member><name>schule</name><value>HTWK</value></member> ...
> 
> the difference is that haxr has extra <string> tags
> for values of arguments. I don't think this is right?

There is an fix in darcs now. It's untested; I'll test it as soon as I 
get a test environment set up. Let me know how it works out for you. 
Thanks to Malcom Wallace for suggesting a low-resistance way to fix this.

/Björn


More information about the Libraries mailing list