Maintenance is complete- We've moved from the saas.hpe.com domain to softwaregrp.com click to read more
As part of our journey to complete our separation work and our future integration with Micro Focus, we've now updated our domain for the community. This is an interim step, which will be followed by a series of future update / improvements: - Piloting Idea boards - Refreshing the entire UI. (more to come later) - and more
Network Automation Practitioners Forum
cancel

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

SOLVED
Go to solution
Highlighted
jinCecowd4
Regular Contributor.

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

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]

 

 

 

5 REPLIES
agonza
Super Contributor.

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

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.
Solution

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

and probably some other dependencies too.

jinCecowd4
Regular Contributor.

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

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

agonza
Super Contributor.

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

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;

jinCecowd4
Regular Contributor.

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

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,