1. Are only some modules allowed within SOAP servers (perhaps for security reasons)?

Yes. See SOAP::Lite to see just what 'dispatch_to' is doing.

2. How can I add additional modules to that list or circumvent the "feature" in #1?

See the SOAP::Lite documentation, especially about what dispatch_to() does. Look for the section labeled SECURITY. I would suggest also looking at soaplite.com, but they're lacking documentation on the subject in question, and just have an empty stub for it... but they do have lots of other info on SOAP::Lite.

3. What sort of code can I ad to my server script or module to tell me what is going on with respect to the module loading or other errors?

It's just a CGI script, so you'll want to look in your webserver's error log for whatever might've been sent to STDERR. You don't want to call print() or the like, or you'll send something back to the client that might be bad. (for debugging those sorts of things, look at on_debug() or passing the +trace or +debug options via use SOAP::Lite +trace; You can also check the assorted fault methods of the SOAP::SOM object that's returned from SOAP::Lite, rather than just checking result():

my $som = SOAP::Lite -> uri('Text/Caps') -> proxy('http://localhost:9000') -> capitalize('Mares Eat Oats, And Does Eat Oats, and Little Lambs + Eat Ivy'); if ( $som->fault() ) { die "ERROR : ",$som->faultcode()," ; ", $som->faultstring(); } my $result = $som->result() || ''

In reply to Re: SOAP Servers and use-ing various modules by jhourcle
in thread SOAP Servers and use-ing various modules by geekondemand

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.