I am working with mod_soap and can't seem to find out how to get my client to communicate. The docs explain how to configure Apache, but do not specify any examples of how the client accesses a 'SOAPed' module.

Here is my http.conf info:

<Location /mod_soap> SetHandler perl-script PerlHandler Apache::SOAP PerlSetVar dispatch_to "/usr/local/apache/lib/soap" </Location>
Here is the module i am trying to access (/usr/local/apache/lib/soap/Demo.pm):
package Demo; sub foo { return "foo\n" } sub bar { return "bar\n" } 1;
And finally, the client:
use strict; use SOAP::Lite; my $soap = SOAP::Lite ->uri('http://localhost/Demo') ->proxy('http://localhost/mod_soap/') ; print $soap->foo()->result();
When i run the client (webserver is active), i get the following error:
500 unexpected EOF before status line seen
And this line is reported in the web server error log:
[notice] child pid 18225 exit signal Segmentation fault (11)
Any help is greatly apprectiated - it might be time for me to break out the packet sniffer . . . .

Thanks,
jeffa

    A flute with no holes is not a flute . . .
a doughnut with no holes is a danish.
                                - Basho,
                                  famous philosopher

In reply to troubles writing mod_soap clients by jeffa

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.