ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkf360 <dani...@gmail.com>
Subject Cannot figure out why I am getting a failed to parse Integer Value error?
Date Sun, 12 Oct 2008 07:18:47 GMT

Hi, 

I am writing an XMLRPC client with Objective C, using XCode.  On the server
side, I have a RPC method foo with these parameters:

foo(String name, double lat, double lng);

>From the client side, I am making the call through the XMLRPC library found
on http://divisiblebyzero.com

This is the XML request that is being sent through the wire from the client
side:

User.setUserLocation: <?xml
version="1.0"?><methodCall><methodName>User.setUserLocation</methodName><params><value><string>Myself</string></value><value><i4>37.331689</i4></value><value><i4>-122.030731</i4></value></params></methodCall>

The values seems legit to me, so I am wondering why I get this response from
the server:

<?xml version="1.0" encoding="UTF-8"?><methodResponse
xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions"><fault><value><struct><member><name>faultCode</name><value><i4>0</i4></value></member><member><name>faultString</name><value>Failed
to parse XML-RPC request: Failed to parse integer value:
37.331689</value></member></struct></value></fault></methodResponse>

Is it because I am passing the double values as an <i4> datatype? If so, I'm
assuming I will have to change the XMLRPC library from
http://divisiblebyzero.com to ensure that it is encoding actual double
values as a <double> instead of <i4>?

Thanks.
-- 
View this message in context: http://www.nabble.com/Cannot-figure-out-why-I-am-getting-a-failed-to-parse-Integer-Value-error--tp19939273p19939273.html
Sent from the Apache Xml-RPC - User mailing list archive at Nabble.com.


Mime
View raw message