Larry, there are a few debugging tricks you can do at this point.  The first
thing you should do anytime you get an internal server error is check the
apache error log (in /var/log/httpd/error_log) - this might give you some
indication of what is going wrong.

Another handy thing to try is to run the script on the command line - I'm
not familiar with SOAP::Lite, but if it uses the CGI module, you can
probably just run your script like 'perl scriptname "args=1&args=2"' - if
there is a compile error, you should see that here.  You can also check your
script's syntax with "perl -cw scriptname".  If you're using BBEdit, you can
check syntax from there from the perl menu.  If you're not using BBEdit, I
recommend you get it. :)

Also check out the the CGI::Carp module - put this line at the top of your
script:

use CGI::Carp qw( fatalsToBrowser );

This will print any fatal errors in your script to the web browser instead
of the error log - very handy for debugging.

If you've installed the SOAP::Lite module, and have copied the working
script verbatim, I would guess that your problem is line endings - make sure
your script is using unix line endings instead of mac - mac line endings
confuse perl into thinking your script is one long line.

Ian


On 10/4/01 6:52 PM, "Larry Staton Jr." <[EMAIL PROTECTED]> wrote:

> I've been playing around with AppleScript and Perl clients to XML-RPC
> servers and SOAP servers. Both implementations work very nicely.
> However, I would like to build a Perl server with SOAP::Lite. I have
> attempted the Temperatures example at http://guide.soaplite.com. When I
> try to access the Perl server with a Perl client, I get a "500 Internal
> Error" message at line 3 in the client script. Here is the client script:
> 
> use SOAP::Lite;
> print SOAP::Lite
>    -> uri('http://my.server.com/cgi-bin/Temperatures')
>    -> proxy('http://my.server.com/cgi-bin/temper.cgi')
>    -> f2c(32)
>    -> result;
> 
> Any suggestions? TIA.
> --
> Larry Staton Jr.
> E-mail: [EMAIL PROTECTED]
> Weblog: http://staton.weblogger.com
> 
> Brought to you by Mail.app from Mac OS X
> 
> 

Reply via email to