Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Frontier::Client and getting right XML output

by inblosam (Monk)
on May 21, 2004 at 00:46 UTC ( #355141=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2022-06-30 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (98 votes). Check out past polls.

    Notices?