Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

SOAP request error: 500 Connect failed

by blackadder (Hermit)
on Apr 18, 2007 at 12:05 UTC ( [id://610746]=perlquestion: print w/replies, xml ) Need Help??

blackadder has asked for the wisdom of the Perl Monks concerning the following question:

O'holy and absolutely beloved ones. Greetings

Apologies if this is not ethical

I have installed the ViPerl module successfully, however when I set the installation with this script
#! c:/perl/bin/perl.exe use Strict; use Warnings; use VMware::VIRuntime; my $service_url = 'https://localhost/sdk/vimService'; my $userid ='administrator'; my $password ='password'; Vim::login(service_url => $service_url, user_name => $userid, password + => $password);
However I got this error msg back
C:\VMware API Download\Scripts>TEST_VI.PL SOAP request error: 500 Connect failed: connect: Unknown error; Unknow +n error at C:/Perl/site/lib/VMware/VIStub.pm line 166 SoapClient::request('SoapClient=HASH(0x372de78)', 'RetrieveSer +viceConten t', '<_this type="ServiceInstance">ServiceInstance</_this>\x{a}') call +ed at C:/P erl/site/lib/VMware/VIStub.pm line 26565 VimService::RetrieveServiceContent('VimService=HASH(0x2168e8)' +, '_this', 'ManagedObjectReference=HASH(0x370a004)') called at C:/Perl/site/lib/ +VMware/VIR untime.pm line 44 Vim::login('service_url', 'https://localhost/sdk/vimService', +'user_name ', 'administrator', 'password', 'password') called at C:\VMware API Do +wnload\Scr ipts\test_vi.pl line 17 C:\VMware API Download\Scripts>
Not sure what is causing this since every prerequisites have been installed!

Thanks in advance for your help

Blackadder

Replies are listed 'Best First'.
Re: SOAP request error: 500 Connect failed
by jhourcle (Prior) on Apr 18, 2007 at 12:16 UTC
    Not sure what is causing this since every prerequisites have been installed!

    It likely has nothing to do with the modules installed.

    Typically in this context, 500 is an HTTP 500 error -- which means, the webserver you're connecting to threw an error. You should look at the webserver's error logs.

    In your particular case, it also specifically says '500 connect failed', which may mean that the SOAP client wasn't able to connect to the webserver. You should also make sure that the URL you're trying actually works. (and because you're using a service, make sure that you can get to the proxy that's mentioned in the WSDL, too)

      Thanks, just wanted to make sure...
      Blackadder

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://610746]
Approved by Joost
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-19 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found