Hi,
I'm using the perl shell in order to comunicate with your HelloServer example program. So I run "HelloServer 9000" from command prompt and I start the perl shell with:
perl XMLRPCsh.pl http://127.0.0.1:9000
The system.listMethods(), Hello() and HelloName() calls work fine, but the Sum() call fails. For example:
>Sum(1,2)
says me:
--- XMLRPC FAULT ---
-1
type error
any idea / posible bug ?
Thanks and good work !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't used the perl client, but the fact that the zero-argument methods work makes me wonder whether the arguments are being passed properly.
Since that method expects doubles, you could try Sum(1.1,2.1) and see whether that works better.
If not, try setting the verbosity of the server to 5 so you can see what the request xml actually looks like.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-05-09
Hi, Chris
It works !
Thank you again. Perl xmlrpc shell it's a great tool, because I dont need to write a xmlrpc client in order to test my server. I recommend it; for Windows, you only need the Active-State perl distribution (http://www.activestate.com) and it's free. Then, at c:\perl\bin, type:
Hi,
I'm using the perl shell in order to comunicate with your HelloServer example program. So I run "HelloServer 9000" from command prompt and I start the perl shell with:
perl XMLRPCsh.pl http://127.0.0.1:9000
The system.listMethods(), Hello() and HelloName() calls work fine, but the Sum() call fails. For example:
>Sum(1,2)
says me:
--- XMLRPC FAULT ---
-1
type error
any idea / posible bug ?
Thanks and good work !
I haven't used the perl client, but the fact that the zero-argument methods work makes me wonder whether the arguments are being passed properly.
Since that method expects doubles, you could try Sum(1.1,2.1) and see whether that works better.
If not, try setting the verbosity of the server to 5 so you can see what the request xml actually looks like.
Hi, Chris
It works !
Thank you again. Perl xmlrpc shell it's a great tool, because I dont need to write a xmlrpc client in order to test my server. I recommend it; for Windows, you only need the Active-State perl distribution (http://www.activestate.com) and it's free. Then, at c:\perl\bin, type:
perl XMLRPCsh.pl http://127.0.0.1:9000
(or the IP+port where your server is) and you can type the xmlrpc commands that your server accepts.