ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wilson" <...@wilson.co.uk>
Subject Re: XmlRpc.parse problems
Date Mon, 03 Nov 2003 18:42:41 GMT
Tanya Brethour wrote:
>>> Client calling procedure 'PIPES.NetworkMeasurement' with parameters
>>> [V4, STTL, DNVR, 20031102000000, 20031103000000]
>>>
>>> Anyone have any idea how I can force it to not convert the date
>>> strings to integers?
>>>
>>>
>>> Stack Trace and Debug:
>>> Client calling procedure 'PIPES.NetworkMeasurement' with parameters
>>> [V4, STTL, DNVR, 20031102000000, 20031103000000]
>>> Beginning parsing XML input stream
>>> startElement: methodResponse
>>> startElement: params
>>> startElement: param
>>> startElement: value
>>> startElement: struct
>>> startElement: member
>>> startElement: name
>>> endElement: name
>>> startElement: value
>>> startElement: struct
>>> startElement: member
>>> startElement: name
>>> endElement: name
>>> startElement: value
>>> startElement: int
>>> endElement: int
[snip]
> I'm using the org.apache.xmlrpc.XmlRpcClient. Here is the code I have
> to create the client (changed a bit for privacy):
>
> client = new
> XmlRpcClient("http://someurl.org/xmlrpc_server.cgi");
>
> Vector xmlrpcParams = new Vector();
>       xmlrpcParams.add("V4");
>       xmlrpcParams.add("STTL");
>       xmlrpcParams.add("DNVR");
>
>       xmlrpcParams.add("20031102000000");
>       xmlrpcParams.add("20031103000000");
>
>       Vector results = (Vector)
> client.execute("PIPES.NetworkMeasurement", xmlrpcParams);
>
>> You would be better off sending your "date" values as <string>s if
>> you want to use this format.
>
> I guess thats what I thought I was doing by adding them to the execute
> vector parameter as strings.

The code you post looks fine. However it does not correspond to the parse
trace you posted. Is it possible that you are not running the code you
posted?

John Wilson
The Wilson Partnership
http://www.wilson.co.uk


Mime
View raw message