perlquestion
Sinister
Hi,<br><br>
I am fidling around with RPC::XML (an xml-rpc implementation for Perl) - which seemed the most usable of xml-rpc/soap thingies out there in the perl world.<br><br>
However; it is not really working...<br><br>
I have a test server and client doing a simple 'system.listMethods' - but the result is empty. Now I know the documentation says:<br><br>
<i>"If the return value from send_request is not a reference, then it can only mean an error on the client-side (a local problem with the arguments and/or syntax, or a transport problem)."</i><br><br>
But I don't realy see what's wrong with this code:
<code>
#!/opt/perl/bin/perl -Tl
use warnings;
use strict;
use RPC::XML::Client;
my $client = RPC::XML::Client->new('http://localhost:8000/');
my $result = $client->send_request('system.listMethods');
die $result unless defined($result);
die $result;
die $result->code . ': ' . $result->string if $result->is_fault;
print join(' ', @{$result->value}), "\n";
</code>
This gracefully dies with: Died at ./client.pl line 11.<br><br>
What's more; using tcpflow (i know - evil) i can see a succesfull POST including a good return containing valid XML. (tried to validate it with XML::Parser, which works like a charm)<br><br>
So a transport problem doesn't seem to be the problem either.<br><br>
Any suggestions on how I can (tackle || find the root of) this problem?
<div class="pmsig"><div class="pmsig-75020">
<br><br>
<B><A HREF="/index.pl?node=Sinister">er formait hyarya</A></b>.<br>
<font size="1" color="maroon"><i>-- "Life is a house and the next tornado is never far away"<br>-- "lovely by nature"</i></font><br>
</div></div>