Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: RPC::XML::Client question

by Roger (Parson)
on Jan 06, 2004 at 13:59 UTC ( [id://319116]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: RPC::XML::Client question
in thread RPC::XML::Client question

Did you check if the $client is built properly? You could add another print Dumper($client);. I just think the line my $client = RPC::XML::Client->new('http://localhost:8000/'); looks doggy, don't you need to specify the name of the service in the URL? Something like 'http://localhost:8000/cgi-bin/rpcserver'.

And you could also invoke the perl debugger and step into the send_request method, and see step by step what is happenning inside the module. Are you on Linux? If so, you could just invoke the ddd visual debugger by specifying -perl on the commandline, together with the name of your script.

Replies are listed 'Best First'.
Re-4: RPC::XML::Client question
by Sinister (Friar) on Jan 06, 2004 at 14:58 UTC
    using DDD is a good one - thanks! I still don't get it though...

    Here's what tcpflow is revealing;
    request
    POST / HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept-Encoding: deflate Host: localhost User-Agent: RPC::XML::Client/1.19 libwww-perl/5.76 Content-Length: 102 Content-Type: text/xml <?xml version="1.0"?> <methodCall><methodName>sinister.name</methodName><params></params></m +ethodCall>
    response:
    HTTP/1.1 200 OK Date: Tue, 06 Jan 2004 14:44:39 GMT Server: libwww-perl-daemon/1.33 Accept: text/xml Accept-Encoding: deflate Content-Length: 127 Content-Type: text/xml RPC-Encoding: XML-RPC RPC-Server: RPC::XML::Server/1.37 <?xml version="1.0"?> <methodResponse><params><param><value><string>sinister</string></value +></param></params></methodResponse>
    Where does it go wrong? Beats me...


    er formait hyarya.
    -- "Life is a house and the next tornado is never far away"
    -- "lovely by nature"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://319116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2025-06-25 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.