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

In reply to SOAP Lite Object reference Error by Hammy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.