Hi Monks,

I'm a new user of SOAP::Lite (v1.26) and I want to make an executable tool (I need an executable because the persons who will use it do not have Perl environment installed). When I execute the Perl code (i.e. not packaged), it executes flawlessly (connection is ok, calls are ok, etc.) but if I compile it using pp, the executable return errors.

Example of message: Use of uninitialized value $value in pattern match (m//) at SOAP/Lite.pm line 1505.

I don't know if code is usefull but here is a piece of it (the message I mentioned shows between print "Test1" and "Test2").

$soap=SOAP::Lite->new(proxy=>$soapurl); $soap->on_fault(\&soapGetBad); $soap->on_action(sub{qq("$_[0]")}); $soap->autotype(0)->readable(1); $soap->default_ns('urn:http://www.something.com/somewhere'); # Open session $som=$soap->call('OpenSession', SOAP::Data->name('parameter1')->value('12'), SOAP::Data->name('parameter2')->value('10')); if(defined($som->result)){ $sessionID=$som->result; # Open project print "Test1\n"; $som=$soap->call('OpenProject', SOAP::Data->name('sessionid')->value($sessionID), SOAP::Data->name('projectname')->value($project)) +; print "Test2\n"; ...

The first messages are warnings, as the execution does not die. But later on SOAP issues an error and stops the program execution. I believe it's due to the first warnings.

The application is packaged under Strawberry running Perl 5.14.4.1-64bit.

If you have any idea how I can fix this, it will be much appreciated. Thanks in advance for your help!


In reply to SOAP::Lite and pp (Perl Packager) issue by Garden Dwarf

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.