nedals has asked for the wisdom of the Perl Monks concerning the following question:
... and I get the expected result. However, if I put the 'same' SOAP server script on my server.## soapclient.pl ## use SOAP::Lite; print SOAP::Lite -> uri('http://www.soaplite.com/Demo') -> proxy('http://services.soaplite.com/hibye.cgi') -> hi() -> result; exit;
and run....## soapserver.cgi ## #!/usr/bin/perl use SOAP::Transport::HTTP; SOAP::Transport::HTTP::CGI -> dispatch_to('Demo') -> handle; package Demo; sub hi { return "hello, world"; } sub bye { return "goodbye, cruel world"; } 1; exit;
I get a '500 Internal ServerError at soapclient.pl line 2'## soapclient.pl ## use SOAP::Lite; print SOAP::Lite -> uri('http://www.anything.com/Demo') -> proxy('http://dev.domain.com/cgi-bin/soapserver.cgi') -> hi() -> result; exit;
to my .cgi script and got this error..use CGI::Carp(qw/warningsToBrowser fatalsToBrowser/);
The problem is possibly with the uri. I just don't understand how it's constructed.
My reading tells me it can be almost anything followed by a package name where the package path is relative to the proxy script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite returning 500 error
by Anonymous Monk on Sep 18, 2009 at 00:43 UTC | |
by snoopy (Curate) on Sep 18, 2009 at 01:02 UTC | |
|
Re: SOAP::Lite returning 500 error
by snoopy (Curate) on Sep 18, 2009 at 00:59 UTC | |
by Anonymous Monk on Sep 18, 2009 at 01:56 UTC |