VMware Cloud Community
tank_in_tx
Contributor
Contributor

Run vSphere SDK sample return error "login fault : The server sent HTTP status code 404"

Hi,

I downloaded the vSphere SDK 6.0.0-2561048. And run "run.bat" under SDK\vsphere-ws\java\JAXWS.

command: > run.bat com.vmware.general.GetHostName --url https://[my vcenter IP]/sdk --username [my username] --password [my password].

It returned error:

ERROR: could not connect: login fault : The server sent HTTP status code 404: Not Found

I confirmed that my username and password is correct and have right privilege.

My vCenter is 6.0.0, 3018524.

I tried the same command on another vCenter, it returned the ESXi hosts information.

Can someone tell me what did I miss in the vCenter which returned error?

Thanks!

0 Kudos
2 Replies
MartinE11
Enthusiast
Enthusiast

Were you able to solve this problem?

I face the exact same problem.

0 Kudos
druideinformati
Contributor
Contributor

I have the same problem. I can access the WSDL at /sdk/vimService.wsdl/, but com.vmware.vm.VMLinkedClone returns a 404 for /sdk

Using a proxy (Charles) shows that it tries to connect to /sts/STSService

0 Kudos