Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
Valued Contributor.. jinCecowd4 Valued Contributor..
Valued Contributor..
1589 views

[SOAP::LITE]] Perl API demo script failed

Jump to solution

Hello, 

When I try the demo scripts..... I got this error

Can't locate object method "new" via package "SOAP::Transport::HTTP::Client::SUPER" at /usr/local/share/perl5/SOAP/Transport/HTTP.pm line 59.

HPNA 10.20  | Opsware-0.6.8

 


[SOAP]# perl Makefile.PL

We are about to install SOAP::Lite and for your convenience will provide
you with list of modules and prerequisites, so you'll be able to choose
only modules you need for your configuration.

XMLRPC::Lite, UDDI::Lite, and XML::Parser::Lite are included by default.
Installed transports can be used for both SOAP::Lite and XMLRPC::Lite.

Client HTTP support (SOAP::Transport::HTTP::Client) [yes]
Client HTTPS support (SOAP::Transport::HTTPS::Client, require OpenSSL) [no]
Client SMTP/sendmail support (SOAP::Transport::MAILTO::Client) [yes]
Client FTP support (SOAP::Transport::FTP::Client) [yes]
Standalone HTTP server (SOAP::Transport::HTTP::Daemon) [yes]
Apache/mod_perl server (SOAP::Transport::HTTP::Apache, require Apache) [no]
FastCGI server (SOAP::Transport::HTTP::FCGI, require FastCGI) [no]
POP3 server (SOAP::Transport::POP3::Server) [yes]
IO server (SOAP::Transport::IO::Server) [yes]
MQ transport support (SOAP::Transport::MQ) [no]
JABBER transport support (SOAP::Transport::JABBER) [no]
MIME messages [required for POP3, optional for HTTP] (SOAP::MIMEParser) [no]
SSL support for TCP transport (SOAP::Transport::TCP) [no]
Compression support for HTTP transport (SOAP::Transport::HTTP) [no]

Do you want to proceed with this configuration? [yes]

 

 

 

Tags (2)
0 Likes
1 Solution

Accepted Solutions
agonza Super Contributor.
Super Contributor.

Re: [SOAP::LITE]] Perl API demo script failed

Jump to solution

and probably some other dependencies too.

0 Likes
5 Replies
agonza Super Contributor.
Super Contributor.

Re: [SOAP::LITE]] Perl API demo script failed

Jump to solution

You need the perl module: SOAP::Transport::HTTP installed in your system.

 • Compression support for HTTP transport (SOAP::Transport::HTTP) 

http://search.cpan.org/~byrne/SOAP-Lite-0.65_5/lib/OldDocs/SOAP/Transport/HTTP.pm

agonza Super Contributor.
Super Contributor.

Re: [SOAP::LITE]] Perl API demo script failed

Jump to solution

and probably some other dependencies too.

0 Likes
Valued Contributor.. jinCecowd4 Valued Contributor..
Valued Contributor..

Re: [SOAP::LITE]] Perl API demo script failed

Jump to solution

Yes, re-run the SOAP::Lite Makefile.PL,  check 'yes' on HTTP::Compress support. Installed the IO::Compress / Compress::ZLIB.... still getting same issue with Opsware::NAS::Client

list_users.pl -user admin -pass admin -host 127.0..0.1:8023

 

For the second example with Opsware::NAS:CONNECT, I'm getting this error:

connet.pl --user=admin --pass=admin --host='127.0.0.1:8023' --devicce='192.168.1111.111'

Use of unitialized value $devuser in concatenation (.) or string at /usr/local/share/perl5//opsware/NAS/Connect.pm line 675

 

https://softwaresupport.hpe.com/km/KM02492988/NA_api_user_guide_10.20.pdf

Page 23

These examples show how to use the Perl API. Keep in mind that it is possible to run the examples without installing the Perl modules by remaining in the demo directory and supplying the relative (or full) path to each example, as in

0 Likes
agonza Super Contributor.
Super Contributor.

Re: [SOAP::LITE]] Perl API demo script failed

Jump to solution

have you tried to debug the perl script and check the dependencies?, this really sounds like a dependency issue or maybe your version of perl is not supported?

Unix:

$ perl -v

Debug line example:

-debug=>25;

Valued Contributor.. jinCecowd4 Valued Contributor..
Valued Contributor..

Re: [SOAP::LITE]] Perl API demo script failed

Jump to solution

Yes you are absolutly right!   I have to do this ....  

 

perl -I/usr/local/share/perl5/ ./list_user.pl 

 

even though I have 'export PERL5LIB=$PERL5LIB:/usr/local/share/perl5'  in profile... 

 

 Maybe somewhere in list_user.pl override the modules path,

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.