Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jonasbn (1153)

jonasbn
  reversethis-{gro.napc} {ta} {nbsanoj}
http://e-diot.dk/
AOL IM: BJonasN (Add Buddy, Send Message)

Perl Programmer located in Copenhagen, Denmark. Active member of Copenhagen Perl Mongers.

Author of:

  • Business::DK::CPR
  • Business::DK::CVR
  • Business::DK::PO
  • Business::OnlinePayment::CashCow
  • Date::Holidays
  • Date::Holidays::Abstract
  • Date::Holidays::Super
  • Date::Pregnancy
  • Games::Bingo
  • Games::Bingo::Bot
  • Games::Bingo::Print
  • Module::Info::File
  • Module::Template::Setup
  • Test::Timer

and maintainer of:

  • Tie::Tools
  • XML::Conf
  • Workflow

Journal of jonasbn (1153)

Thursday January 26, 2006
05:08 PM

SOAP::Lite Frustrations

[ #28483 ]

I am currently attempting to set up a webservice in a mod_perl based environment for a client. The environment is based on Linux and perl 5.6.1 - I do not have root access on the machine, but I have my own virtualhost and CPAN installation so I am somewhat in control of what is going on.

After going back and forth for many hours, I turned on my own laptop and implemented a similar setup, in OSX (Tiger, running perl 5.8.6) though, this took 10 minutes and worked out of the box - so I copied this solution back to the Linux environment and it does not work??

I am getting really frustrated with this - it is not the first time I see weird a problem with Perl 5.6.1 on Linux, so I am afraid that I might be suspecting a problem with the Perl version, but then I would very much like to locate the problem in order to report it (or at least find out what it is). So if anybody has knowledge of where SOAP::Lite initializes modules, please point me to that part of the SOAP::Lite distribution - I have not been able to find this particular functionality and it seems as if this is the area I would like to dig into.

I have signed up to one of the SOAP::Lite mailinglists (perhaps I should join the developer list instead of the user/support) and I addressed the issue there.

This is a brief description of the setup:

httpd.conf:

PerlRequire /Users/jonasbn/Desktop/soap/startup.pl
SetHandler perl-script
PerlHandler MySOAP
PerlSetVar options "compress_threshold => 10000"

startup.pl:

use lib qw(/Users/jonasbn/Desktop/soap);

use MySOAP;
use HelloWorld;

1;

MySOAP.pm:

package MySOAP;

use Data::Dumper;
use SOAP::Transport::HTTP;

my $server = SOAP::Transport::HTTP::Apache
                -> dispatch_to('/Users/jonasbn/Desktop/soap', 'HelloWorld');

sub handler {
                print STDERR "We have reached the dispatcher\n";

                print STDERR Dumper $server;

                $server->handler(@_);
}

1;

HelloWorld.pm:

package HelloWorld;

sub helloworld {
                print STDERR "We have reached the endpoint\n";
                return "Hello World!\n";
}

1;

I never reach the endpoint in the Linux environment, since the server does not know it, I can see it gets the parameters (dispatch_to) from MySOAP.pm, but the handling module never seems to be initialized and I therefor get an error 500 :-/

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.