http://qs1969.pair.com?node_id=319116


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"