Well, coincidentally, we've just started on the SOAP path. After a lot of wailing and gnashing of teeth (as they say), I'm getting my head round it and it seems to be the quickest way to develop these kind of apps. Here's a test client script - to give you an idea:
#!/usr/bin/perl use strict; use warnings; use SOAP::Lite; use Data::Dumper; my $hashref = {1 => 'one', 2 => 'two'}; my $arrayref = [1,2,3,4,5,6]; my $args = { hashref => $hashref, arrayref => $arrayref}; my $soap = SOAP::Lite -> uri('https://domain.com/LogError') -> proxy('https://domain.com/path/to/logging_script'); my $res = $soap->test($args); print $res->result;
And here's the test server script - "logging_script" @ "https://domain.com/path/to/logging_script"
#!/usr/bin/perl use strict; use warnings; use SOAP::Transport::HTTP; use Data::Dumper; SOAP::Transport::HTTP::CGI -> dispatch_to('LogError') -> handle; package LogError; sub test { my ($class,$args) = @_; open(LOG,">>log.txt") || return "Can't open log"; print LOG Data::Dumper::Dumper($args); print LOG "-"x60,"\n"; close(LOG); return "Everything's OK"; }
Basically, I was just testing sending references to the server, and they dump as expected. I had a few minor issues, but that's another story.

I have no experience of POE, but am already pretty impressed with what SOAP::Lite can do. I disagree about it not being popular though - there's quite an active SOAP::Lite community out there if you go looking.

.02

cLive ;-)

update - oops, renamed server sub to make sense.


In reply to Re: POE vs. SOAP by cLive ;-)
in thread POE vs. SOAP by braswell

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.