Hi,
Constructor of ServiceInstance takes java.net.URL as input. When we pass a URL with a specific UrlStreamHandler, the specified Handler is not used in url.openConnection() while creating connection with VMware vSphere. The problem is that input URL gets converted to String using url.toString method, while creating VimPortType, and inside VimPortType, when we create WSClient, we create new URL(urlString) , so in this process, the original URL object passed as input argument is lost. And while invoking any method, the URLConnection does not use the Handler object passed as input to ServiceInstance.
In or project we needed to use a specific handler while creating UrlConnection, so we did some modification in classes ServiceInstance, VimPortType, VimStub, WSClient. Attached is the diff of what we did. Please incorporate it in furure release of VIJava.
Thank You,
Deepak
Diff of files from current source.