The Web Client SDK samples are not complete. They are missing the file(s) that one would use to register them on a real vSphere server.
I'm attempting to install the WS SDK sample as if it were a real application. I have created the XML file, packaged the dependent JAR and WAR files and then placed the package on a web server with an HTTPS URL. I have registered the extension with the vSphere server but I'm getting a Java exception in the server logs when it tries to download the package.
The registration XML is here
<extension>
<description>
<label>WSSDK</label>
<summary>WSSDK Sample</summary>
</description>
<key>com.vmware.samples.wssdkui</key>
<company>VMware</company>
<version>1.0.0</version>
<client>
<version>1.0.0</version>
<description>
<label>WSSDKUI</label>
<summary>WSSDKUI</summary>
</description>
<company>VMWare</company>
<type>vsphere-client-serenity</type>
<url>https://mkesrv-vcvzip2b.pkware.com:34443/sample/samples-wssdkui.zip</url>
<serverThumbprint>ce:be:19:0c:86:03:8a:e9:46:7a:1f:2d:b6:d2:59:5a:78:6f:ee:a0</serverThumbprint>
</client>
<lastHeartbeatTime>2013-10-31T00:25:52.814418Z</lastHeartbeatTime>
</extension>
When it tries to load the package it puts this into the server log
[2013-11-01 10:34:03.306] INFO [INFO ] vc-service-pool-239 D8FD1248E389522ABC4FC53E48C784EB com.vmware.vise.vim.extension.VcExtensionManager start writePackageToFile : com.vmware.samples.wssdkui
[2013-11-01 10:34:03.306] INFO [INFO ] vc-service-pool-239 D8FD1248E389522ABC4FC53E48C784EB com.vmware.vise.vim.extension.VcExtensionManager Downloading plugin package from https://mkesrv-vcvzip2b.pkware.com:34443/sample/samples-wssdkui.zip
[2013-11-01 10:34:03.306] ERROR [ERROR] vc-service-pool-239 D8FD1248E389522ABC4FC53E48C784EB com.vmware.vise.vim.extension.VcExtensionManager The plugin package download was blocked because the URL isnot secure. To allow http URLs add allowHttp=true to webclient.properties
[2013-11-01 10:34:03.306] INFO [INFO ] vc-service-pool-239 D8FD1248E389522ABC4FC53E48C784EB com.vmware.vise.vim.extension.VcExtensionManager end writePackageToFile : com.vmware.samples.wssdkui
[2013-11-01 10:34:03.321] ERROR [ERROR] vc-service-pool-239 D8FD1248E389522ABC4FC53E48C784EB com.vmware.vise.vim.extension.VcExtensionManager Error unzipping https://mkesrv-vcvzip2b.pkware.com:34443/sample/samples-wssdkui.zip java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at com.vmware.vise.vim.extension.VcExtensionManager.downloadPackage(VcExtensionManager.java:402)
at com.vmware.vise.vim.extension.VcExtensionManager.access$300(VcExtensionManager.java:61)
at com.vmware.vise.vim.extension.VcExtensionManager$1.call(VcExtensionManager.java:294)
at com.vmware.vise.vim.extension.VcExtensionManager$1.call(VcExtensionManager.java:280)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
I have confirmed that the URL works from my system in my network.
I have updated the webclient.properties file as the error told me to even though I'm using HTTPS and HTTP. I have also tried using HTTP before and after the change to the webclient.properties file. No luck so far. Any help would be greatly appreciated. The server is running version 5.1.