Hello
In a vCenter installed using non-default values (custom install path, custom ports), I am unable to retrieve the service content reference.
On executing the _vimPort.retrieveServiceContent below:
ManagedObjectReference serviceInstance = new ManagedObjectReference();
serviceInstance.setType("ServiceInstance");
serviceInstance.setValue("ServiceInstance");
serviceContent = _vimPort.retrieveServiceContent(serviceInstance);
I see the following exception:
java.net.ConnectException: Connection refused: connect.
my service url is: https://<ipaddress>/sdk/vimService
Following is the stack trace:
error: java.net.ConnectException: Connection refused: connect.
com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectExcept
ion: Connection refused: connect
at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTran
sport.java:129)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.
java:206)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTranspo
rtPipe.java:134)
at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPi
pe.java:135)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:638)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:597)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:582)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:479)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:320)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:158)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:110)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:90)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:141)
at com.sun.proxy.$Proxy35.retrieveServiceContent(Unknown Source)
Any help will be appreciated.
Thanks
Elizabeth