2011-06-22 10:57 PM
we have installed VSC installed on server a server 192.168.120.102, the VCenter is installed on another server 192.168.120.108 and the vsc version is 2.1 and is successfully integrated in vCenter , now when we are trying to invoke methods like createDatastore through perl using SOAP, it is showing the error however through vCenter its performing well, below is the xml error (error.txt is attached for detailed error), could somebody help on this ??
Thanks in advance.
2011-06-23 03:50 AM
The error message shows: Unable to connect to VC server at https://192.168.120.108/sdk/vimService
You need to specify the connection paths as described in the samples and the IAG.
my $vc = "192.168.120.108";
my $serviceHost = "192.168.120.102";
my $rcuService = SOAP::Lite->service("https://$serviceHost:8143/kamino/public/api?wsdl");
my $serviceUrl = SOAP:ata->type('string')->name('serviceUrl')->value("https://$vc/sdk");
2011-06-23 04:31 AM
but i am using exactly whatever you specied above ...but there is something which seems a prolem ..
when i go to the web bowser and enter url #https://192.168.120.108/sdk
i get the the below message
HTTP 404 - File not found
however if i type https://192.168.120.108/ in 192.168.120.102's web browser "VMware vSphere 4" console appers
is that an issue ???
2011-06-23 05:01 AM
No, the HTTP 404 is not a problem. You can see the following VMware KB for more info: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003218
What do you receive if you navigate to https://192.168.120.108/mob/ from 192.168.120.102 and use the same username you provided vsc?
Also, I have sent you a private message on another matter, please check your inbox.
2011-06-23 05:11 AM
Also, you have said that you are trying to invoke the VSC methods via the SOAP api. Have you tried the same functions through the UI instead of using SOAP? Does it provide different results?
2011-06-23 05:15 AM
Thanks i have checked your message!!
moreover on the above action what you asked above, on doing that it asks for credentials and after supplying the credentials we get another page , please check screenshot below!!