> > 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
> > java.lang.NumberFormatException: For input string: "20031103000000"
> 
> What XML-RPC client are you using? It is sending the "date" values as
> <int>s. It's also sending the first parameter as a <struct> with the first
> member being another <struct> with the "data" as the first member of the
> inner <struct>.

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. 

-Tanya

Reply via email to