Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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

by Sinister (Friar)
on Jan 06, 2004 at 13:37 UTC ( #319109=note: print w/replies, xml ) Need Help??

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

But that's just the problem. $result = ''; It is defined, but still very much so empty... It's not even a reference :-(

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

Replies are listed 'Best First'.
Re: Re: Re: RPC::XML::Client question
by Roger (Parson) on Jan 06, 2004 at 13:59 UTC
    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.

      using DDD is a good one - thanks! I still don't get it though...

      Here's what tcpflow is revealing;
      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></methodName><params></params></m +ethodCall>
      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://319109]
and a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-08-21 02:15 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (317 votes). Check out past polls.