You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Richard Calosso <ri...@broadlinemediacorp.com> on 2004/05/05 00:04:07 UTC
SOAP::Lite dispatching problems
I am trying to get my Apache server to dispatch SOAP requests per some
examples on the SOAP::Lite docs with not much success. I am running on RH9
with Apache 2.0.49, mod_perl 1.99_13 built on perl v5.8.3 all built from
source locally.
I added the following location directive to httpd.conf
<Location /Broadline/SOAP>
SetHandler perl-script
PerlHandler Apache::SOAP
PerlSetVar dispatch_to "DLManager"
</Location>
If have the following as DLManager.pm in the perl INC path:
package DLManager;
sub sayHello {
shift;
return "Hello" . shift;
}
1;
and am using the following simple client to execute it.
#!/usr/local/bin/perl -w
use strict;
use SOAP::Lite;
my $Name = shift;
print "\nCalling Service\n";
print SOAP::Lite
->uri('http://localhost/DLManager')
->proxy('http://localhost/Broadline/SOAP')
->sayHello($Name)
->result;
When I execute the client program I get
405 Method not allowed at /hello.pl line 11
error and no error messages in the error or access log files.
Can someone shed some light on this for me? I read all the docs I could
find regarding this on Google and SOAPLite.org and still have not been able
to resolve the problem.
Re: SOAP::Lite dispatching problems
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 5 May 2004, Issac Goldstand wrote:
> [snip]
>
> > I believe that
> > some patches to SOAP::Lite (specifically, in
> > SOAP::Transport::HTTP) are needed to work with mod_perl 2.
>
> [snip]
>
> Has someone prepared patches for mp2 already? Or are you
> just saying "it is something which needs to be done"?
Patches were supplied for mp2 in a couple of messages in the
soap-lite mailing list archives.
--
best regards,
randy
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: SOAP::Lite dispatching problems
Posted by Issac Goldstand <ma...@beamartyr.net>.
[snip]
> I believe that
> some patches to SOAP::Lite (specifically, in
> SOAP::Transport::HTTP) are needed to work with mod_perl 2.
[snip]
Has someone prepared patches for mp2 already? Or are you just saying "it is
something which needs to be done"?
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: SOAP::Lite dispatching problems
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 4 May 2004, Geoffrey Young wrote:
> > When I execute the client program I get 405 Method not
> > allowed at /hello.pl line 11 error and no error messages
> > in the error or access log files. Can someone shed some
> > light on this for me? I read all the docs I could find
> > regarding this on Google and SOAPLite.org and still have
> > not been able to resolve the problem.
>
> this really isn't a SOAP::Lite support forum, so you might
> want to try the soaplite list (still on yahoo?) instead.
>
> in any case, it's been a while since I played with
> SOAP::Lite, but here is how I used to debug things, which
> I'm pretty sure I found in the docs:
>
> use SOAP::Lite
> +autodispatch =>
> uri => 'http://localhost/Foo/SOAP',
> proxy => 'http://localhost/Foo',
> on_fault => sub {
> my($soap, $res) = @_;
> die ref $res ? $res->faultstring :
> $res, " ", $soap->transport->status, "\n";
> },
> on_debug => sub{print@_};
As well as that for debugging, also check the soaplite
mailing list archives, as Geoff suggests - I believe that
some patches to SOAP::Lite (specifically, in
SOAP::Transport::HTTP) are needed to work with mod_perl 2.
--
best regards,
randy kobes
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: SOAP::Lite dispatching problems
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> When I execute the client program I get
> 405 Method not allowed at /hello.pl line 11
> error and no error messages in the error or access log files.
> Can someone shed some light on this for me? I read all the docs I could
> find regarding this on Google and SOAPLite.org and still have not been able
> to resolve the problem.
this really isn't a SOAP::Lite support forum, so you might want to try the
soaplite list (still on yahoo?) instead.
in any case, it's been a while since I played with SOAP::Lite, but here is
how I used to debug things, which I'm pretty sure I found in the docs:
use SOAP::Lite
+autodispatch =>
uri => 'http://localhost/Foo/SOAP',
proxy => 'http://localhost/Foo',
on_fault => sub {
my($soap, $res) = @_;
die ref $res ? $res->faultstring :
$res, " ", $soap->transport->status, "\n";
},
on_debug => sub{print@_};
HTH
--Geoff
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html