in reply to Re: Frontier::Client and getting right XML output
in thread Frontier::Client and getting right XML output

Thanks, I need some fine-tuning to my array/hash skills. It works perfect now!!

While I have your attention, I am a bit confused by the RPC::XML module and how to use it, as easy as with Frontier. I would happily use it if I knew how to!

use RPC::XML; $req = RPC::XML::request->new('fetch_prime_factors', RPC::XML::int->new(985120528)); ... $resp = RPC::XML::Parser->new()->parse(STREAM); if (ref($resp)) { return $resp->value->value; } else { die $resp; }

Where do I specify the server address (http://somerpcserversite.com/server.php) and then can I just pass in the arguments like the array above? Where do I do that?

THANKS!

Replies are listed 'Best First'.
Re: Re: Re: Frontier::Client and getting right XML output
by rjray (Chaplain) on May 21, 2004 at 23:57 UTC

    Oh dear-- you shouldn't need to instantiate RPC::XML::Parser yourself. Look at the RPC::XML::Client class. You instantiate it with the HTTP URL of the service you want to talk to. Then you can make calls and get back data-objects as results.

    --rjray