Each of the stand-alone samples in the SDK\vsphere-ws\java\JAX-WS\samples\com\vmware\ uses the JAX-WS TrustAllTrustCertificates class, as discussed in
Example: Obtaining a Session Token - Code Fragments from VMPromoteDisks.java to ignore certificates, obtain a session token, and then connect to the server.
The VimServiceLocator and
VimPortType objects provide access to vSphere servers. The
getVimPort method returns a
VimPortType object that provides access to the vSphere API methods.
The following code fragment from the SDK\vsphere-ws\java\JAX-WS\samples\com\vmware\vm\
VMPromoteDisks.java sample shows another implementation of the server connection. Review the stand-alone Java samples that are shipped with your
vSphere Web Services SDK, and use similar code to get a session token for your client application.