VMware {code} Community
chakribobby
Contributor
Contributor

Unable to access the vCenter using SDK

Hi

I have two Linux machine, one machine is in the same network of vCenter and the other machine is in private network but machine has access to vCenter(ping is working)

I am able to run the sample code in the first machine but i am getting below error when i run the sample code in the second marchine

com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 200: OK
        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:252)
        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:203)
        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:122)
        at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:123)
        at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:626)
        at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:585)
        at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:570)
        at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:467)
        at com.sun.xml.internal.ws.client.Stub.process(Stub.java:308)
        at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:163)
        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)
        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
        at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
        at com.sun.proxy.$Proxy28.retrieveServiceContent(Unknown Source)
        at TestVsphereConnection.intit(TestVsphereConnection.java:52)
        at TestVsphereConnection.main(TestVsphereConnection.java:26)

Attached the sample code that i used for testing.

Could you please help me to fix the issue i am facing in the second machine

Thanks in advance

0 Kudos
1 Reply
JobinG
Contributor
Contributor

Your code have no issues.

Its returning the expected o/p.

Looks like the something unexpected happened in Your server or in Your network settings.

Beyond ping, can You check the connectivity to the server ,  https://<IP>/mob or https:<IP>sdk/vimService via browser to rule out  network issues?

0 Kudos