Hammy has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,
I have a SOAP::Lite call that works well when using SOAP::Lite from CPAN and does not work when running the same code using a Red Hat Box. With the exception of the SOAP::Lite module the perl setups are identical. Below is the SOAP CALL:
use SOAP::Lite +trace; my $s = SOAP::Lite -> uri('http://myURL') -> proxy('https://myURL/myService.asmx') -> on_action(sub{sprintf 'http://myURL/%s', $_[1] }); my $var = SOAP::Data->new(name => 'id', value => "123", type =>'xsi:st +ring'); my $SoapCall = $s->Method($var); my $result = $SoapCall->result;
The error I receive is below:
Server was unable to process request. --> Object reference not set +to an instance of an object.
I am trying to find the version of the modules but the methods I found did not work. Perl -MMODULE -e 'Print SOAP::Lite' gives me - Can't locate MODULE.pm. The script instmodsh gives a syntax error on both boxes.

Lastly, I do not know if it matters or not, but the service I am trying to call is .NET

Any help or suggestions you might have would be greatly appreciated.

- Mark

Replies are listed 'Best First'.
Re: SOAP Lite Object reference Error
by almut (Canon) on Jun 03, 2009 at 21:54 UTC

    I am trying to find the version of the modules ...

    Perl -MMODULE -e 'Print SOAP::Lite'

    I think that should be

    perl -MSOAP::Lite -e 'print $SOAP::Lite::VERSION'
      perl -e'use SOAP::Lite 99'
      is a convenient shortcut.