Sunday, 15 January 2012

Perl PP/PAR packaged executable can't send XML-RPC requests -



Perl PP/PAR packaged executable can't send XML-RPC requests -

i have perl application sends xmlrpc request server, , in return, expects token generated server. problem lies in application behaves differently when still perl programme (.pl) vs. after converted executable (.exe)

here problem is, perl app xmlrpc_test.pl sends login info follows

use xml::rpc; .... $server = "https://...."; $xmlrpc = xml::rpc->new($server); $user = "userid"; $password = "password"; @args = ($user, $password); $token = $xmlrpc->call("login", \@args); ....

and if run perl app directly, token without problem.

but if after tried packing pp (i'm calling wxpar here, it's same pp):

wxpar -m xml::treepp -m lwp::useragent -m http::lite -o xmlrpc_test.exe xmlrpc_test.pl

from commandline next output:

no info @ xml/rpc.pm line 255

and .exe exits/crashes.

from find out, xml::rpc phone call function returned null in $response variable, caused error.

did miss including bundle via -m fields? pp ran without problems , .exe generated. runs except when comes send xmlrpc request... puzzling why works in .pl form , not in .exe form...

any help appreciated!

xml perl xml-rpc

No comments:

Post a Comment