Does the vCenter Server needs to be upgraded to version 5 to invoke Guest OS operations through vCenter for those operations that were transported from the VIX Client to the vSphere 5 Web Service SDK?
For instance, I'm testing one of the Java sample codes included with the vSphere 5 Web Service SDK JAXWS to invoke methods such as StartProgramInGuest and CreateTemporaryFileInGuest and the sample code I'm executing is failing. The sample code has not been modified.
C:\VMwareSDK\VMware-vSphere-SDK-5.0.0-429209\SDK\vsphere-ws\java\JAXWS>run.bat com.vmware.guest.CreateTemporaryFile --url https://192.168.1.4:443/sdk/vim?wsdl --username xx_admin --password xx_pass --vmname xx_vm --guestusername xx_guestuser --guestpassword xx_guestpass --prefix test --suffix txt --directorypath c:\download
Result:
Virtual Machine xx_vm found
com.vmware.vim25.InvalidPropertyFaultMsg:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFa
ultBuilder.java:130)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMetho
dHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMetho
dHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
at $Proxy35.createFilter(Unknown Source)
at com.vmware.guest.CreateTemporaryFile.waitForValues(CreateTemporaryFil
e.java:447)
at com.vmware.guest.CreateTemporaryFile.main(CreateTemporaryFile.java:58
1)
Done.
I'm assuming the resolution may be in the upgrade, but I want to confirm before moving forward.
Thank you in advanced.
Jose