good chemistry is complicated,
and a little bit messy -LW
Getting SOAP to work with mod_perlby tektsu (Acolyte)
|on Aug 22, 2005 at 17:00 UTC||Need Help??|
tektsu has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to get SOAP to work under mod_perl. Googling about and reading what I can find on it, it looks like there are many ways to do this, but they are all giving me the same (non-working) result.
I have two systems I'm trying to do this on: A Mac with Apache 1.3.33/mod_perl 1.29, and a Solaris 8 box with Apache 1.3.28/mod_perl 1.27.
My most recent attempts have been with Apache::SOAP, so I'll use that as my example:
I have this in my httpd.conf:
Demo.pm is in the @INC path. It contains:
I call it like this:
The (rather verbose) output is:
The problem is the $obj is always undefined. This happens whether or not the method I call actually exists, which leads me to believe the Demo.pm file isn't even being loaded, but I'm not sure of that. It seems like it SHOULD be loaded...
On both system, calling the method "$proxy->hi();" kills the Apache child process with an error like this in the error_log:
As I mentioned, I've tried other methods (SOAP::Transport::HTTP::Apache and Apache::Registry) and I get exactly the same result. I've followed examples from "mod_perl Developer's Cookbook", and "Programming Web Services with Perl" as well as from perl.apache.org and guide.soaplite.com. It's only the mod_perl examples I can't get to work. I'm using these scripts (Demo.pm and others) fine with CGI SOAP. I'm thinking something is misconfigured in mod_perl, but darned if I can figure out what.
Can anyone point out what I'm missing? Or at least point out a different FM to R?
kiku wa ittoki no haji kikanu wa matsudai no haji