Home: Perl Programming Help: Advanced:
XML/ HTTP replacement ?

New User

Apr 1, 2009, 10:27 AM

Views: 4652
XML/ HTTP replacement ?

We're using XML over HTTP to execute functions in remote perl modules and exchanging data structures with pl2xml <-> xml2pl. I find there's too much overhead here and would like a more bare bones approach.

All I'm looking to do is this:

[local] instruct remote server to execute a particular function from a specific perl module
[remote] execute function (which typically involves some pgsql data fetching routine) and return the data as a perl hashref for example (or as a storeable object)

I would like to restrict the available interaction to a set of predetermined functions so using something like perlSSH is not a good option. I think some type of socket based communication is what I'm looking for.


(This post was edited by carle on Apr 1, 2009, 10:30 AM)

Veteran / Moderator

Apr 1, 2009, 10:55 AM

Views: 4647
Re: [carle] XML/ HTTP replacement ?

Is there a specific reason you don't want the perl modules on the local server?

If you want to use sockets, then you'll want to look at IO::Socket.

A simple google search for 'perl socket programing' will provide a number of examples.

New User

Apr 1, 2009, 11:39 AM

Views: 4645
Re: [FishMonger] XML/ HTTP replacement ?

The local server is a web facing client portal.

I want to provide limited indirect data access via predefined functions.

I guess I'll have to make my own module using sockets.

(This post was edited by carle on Apr 1, 2009, 11:41 AM)

New User

Apr 1, 2009, 11:53 AM

Views: 4641
Re: [carle] XML/ HTTP replacement ?

I think I may have found my solution here.




Apr 2, 2009, 12:27 AM

Views: 4627
Re: [carle] XML/ HTTP replacement ?

Take a look at SOAP. May be it will help you.