CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



carle
New User

Apr 1, 2009, 10:27 AM

Post #1 of 5 (2320 views)
XML/ HTTP replacement ? Can't Post

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.

Carle


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


FishMonger
Veteran / Moderator

Apr 1, 2009, 10:55 AM

Post #2 of 5 (2315 views)
Re: [carle] XML/ HTTP replacement ? [In reply to] Can't Post

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.
http://search.cpan.org/~gbarr/IO-1.2301/IO/Socket.pm

A simple google search for 'perl socket programing' will provide a number of examples.
http://www.google.com/search?q=perl+socket+programming&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a


carle
New User

Apr 1, 2009, 11:39 AM

Post #3 of 5 (2313 views)
Re: [FishMonger] XML/ HTTP replacement ? [In reply to] Can't Post

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)


carle
New User

Apr 1, 2009, 11:53 AM

Post #4 of 5 (2309 views)
Re: [carle] XML/ HTTP replacement ? [In reply to] Can't Post

I think I may have found my solution here.

http://www.perl.com/lpt/a/901

Thanks.


Tumata
User


Apr 2, 2009, 12:27 AM

Post #5 of 5 (2295 views)
Re: [carle] XML/ HTTP replacement ? [In reply to] Can't Post

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

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives