mephesis has asked for the wisdom of the Perl Monks concerning the following question:
And if I were to run this perl app directly, I get a token without a problem. But if after I tried packing it with PP (i'm calling wxpar here because the front GUI is done with Wx):use XML::RPC; .... my $server = "https://...."; my $xmlrpc = XML::RPC->new($server); my $user = "userid"; my $password = "password"; my @args = ($user, $password); my $token = $xmlrpc->call("login", \@args); ....
From commandline I get the following output:wxpar -M XML::TreePP -M LWP::UserAgent -M HTTP::Lite -o xmlrpc_test.ex +e xmlrpc_test.pl
And the .exe exits/crashes. From what I find out, XML::RPC call function returned a null in the $response variable, which is what caused the error. Did I miss including a package via the -M fields? The PP ran without any problems and the .exe was successfully generated. Everything runs well except when it comes to send the XMLRPC request... The most puzzling is why it works in .pl form and not in .exe form... Any help is appreciated!no data at XML/RPC.pm line 255
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl PP/PAR packaged executable can't send XML::RPC requests
by Anonymous Monk on Jul 14, 2014 at 20:28 UTC | |
by mephesis (Initiate) on Jul 14, 2014 at 22:21 UTC | |
by dasgar (Priest) on Jul 15, 2014 at 04:39 UTC | |
by Anonymous Monk on Jul 15, 2014 at 00:47 UTC |