I am trying to build sdk dlls with VS2010. Following part works for building vim dlls
D:\vsphere5 sdk\SDK\vsphere-ws\dotnet\cs>wsdl /n:VimApi /o:VimService.cs ..\..\wsdl\vim\vim.wsdl ..\..\wsdl\vim\vimService.wsdl
D:\vsphere5 sdk\SDK\vsphere-ws\dotnet\cs>csc /t:library /out:VimService2010.dll VimService.cs
D:\vsphere5 sdk\SDK\vsphere-ws\dotnet\cs>sgen /p VimService2010.dll
However following command to build vim25 dlls fails
D:\vsphere5 sdk\SDK\vsphere-ws\dotnet\cs>wsdl /v /n:Vim25Api /o:Vim25Service.cs ..\..\wsdl\vim25\vim.wsdl ..\..\wsdl\vim25\vimService.wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Could not find a part of the path 'd:\vsphere5%20sdk\sdk\vsphere-ws\wsdl\vim25\query-messagetypes.xsd'.
If you would like more help, please type "wsdl /?".
Can somebody help me get rid of this error?
Thanks,
Vivek.
Hi Vivek
Even I am facing the same problem. Has anyone got the solution?
It seems like you can work with VimService2010.dll generated from vim.wsdl. However, to support latest ESXis and VCenters we should go for Vim25Service2010.dll generated from vim25.wsdl.
vim.wsdl - This wsdl is to be used in conjunction with ESX 3.0.x and VirtualCenter 2.0.x
vim25.wsdl - This wsdl is to be used in conjunction with ESX 3.5, ESXi 3.5, VirtualCenter 2.5, ESX
4.0, ESXi 4.0 and vCenter Server 4.0
if not exist Vim25Service2010.dll (
wsdl /n:Vim25Api /o:Vim25Service.cs ..\..\wsdl\vim25\vim.wsdl ..\..\wsdl\vim25\v
imService.wsdl
csc /t:library /out:Vim25Service2010.dll Vim25Service.cs
sgen /p Vim25Service2010.dll
)
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Could not find a part of the path 'C:\Dev\vmware-vsphere-sdk-5.0.0-429209\sdk\vsphere-ws\wsdl\vim25\query-messaget
ypes.xsd'.
I am having the same issue as well.
>wsdl.exe /n:Vim25Api %WSDLHOME%\Vim25\vim.wsdl %WSDLHOME%\Vim25\vimService.wsdl
FAILS with
Could not find a part of the path <rest of the path>\vmware\sdk\sdk\vsphere-ws\wsdl\vim25\query-messagetypes.xsd'.
With over 400 views - it would be nice to get an answer.
Check out this blog post... could be your answer.
