Greetings,
I am very new to using C# so maybe this is more of a simple matter of me missing something simple but I am trying to use the VMWare VSphere SDK for 5.5. I am following the following article to set up my environment:
vSphere 5.5 Documentation Center
I am having a hard time with step 3 "generate the VimService.cs file"
The error that I am getting from wsewsdl3 is as follows:
Error: Invalid URL, or File 'and' not found.
At first, I thought this was maybe an issue with the environment variables that I set but I did a cd to each variable and they are valid. I also ensure that both the vim.wsdl and the VimService.wsdl are both located at the paths specified. I am not sure where the command is getting the "'and'" from. I did a direct copy and paste out of the documentation for the command to ensure that I did not have any typos when I manually typed in the command.
Operating System: Windows 7
Visual Studio 2013 Professional
Are you referring to this command?
wsewsdl3.exe /n:Vim25Api /type:webClient /l:CS %WSDLHOME%\vim.wsdl %WSDLHOME%\vimService.wsdl
That is an extremely old reference and is not required to code vSphere in C#. All you need to do is install powerCLI on your dev box from here: https://developercenter.vmware.com/tool/vsphere_powercli/5.5. You can choose the version based on what version of vCenter you are using. I used this link because you mentioned 5.5. After installed, go to your project and "Add Reference" and navigate to "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI" and choose "VMware.Vim.dll". Then add a "using" statement and you can code in vSphere.
Let me know if you have any other questions regarding vSphere SDK because I have a lot of experience coding in this and most of the online references are for Java.
Josh