Garden Dwarf has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite and pp (Perl Packager) issue
by dasgar (Priest) on Jan 31, 2018 at 21:33 UTC | |
by Garden Dwarf (Beadle) on Feb 01, 2018 at 09:10 UTC | |
|
Re: SOAP::Lite and pp (Perl Packager) issue
by Marshall (Canon) on Jan 31, 2018 at 22:03 UTC | |
by Garden Dwarf (Beadle) on Feb 01, 2018 at 09:12 UTC |