VMware {code} Community
sid101020203030
Contributor
Contributor

Implementing the VMWare web services in win apps C#

Hi I am trying to implement the web services that are available at

in C# windows app. Can you pleases help me out.

I sucess fully extracted the WSDL and generated the class file out of it.

Can any one provide me a simpe windows app using the webservices. I tried to understand the samples provided with the download. But confusing to me!

Please help me out.

Thanks a lot!

Reply
0 Kudos
2 Replies
sid101020203030
Contributor
Contributor

I am using Visula Studio 2008 and set the envionment variables as suggested. When i run the Buildcmd.2005 in VS 2008 command prompt i got

C:\visdk\SDK\samples\DotNet>Build2005.cmd

Visual Studio 2005 is installed

The system cannot find the batch label specified - err_no_VSTOOLS

The system cannot find the batch label specified - err_no_VSTOOLS

Building Samples in Debug mode

Done Building optimized Stubs and all Samples

But when i go to the bin directoy of the samples I did not find any exe's genearated. Even I was unable to generate the Vim25service2005.dll and also Vimservice25.xmlserializers

When I run the genvimstubs.cmd in VS 2008 ommand prompt I got the below message

C:\visdk\SDK\samples\DotNet>genvimstubs.cmd

The system cannot find the path specified.

Error: Directory for WSDL files vim.wsdl and vimService.wsdl not specified

Please specify WSDL files to generate stubs for

The system cannot find the file specified.

E.g.

genvimstubs.cmd .\

Or to customize namespace stubfilename and dll names etc...

genvimstubs.cmd .\ VimApi .\stubdir MyVimStubs.cs .\dlldir MyVimStubs

ECHO is off.

Error: No Visual Studio 2005 environment settings found

Please run this script inside a Visual Studio 2005 Command Prompt

ECHO is off.

Stub generation Failed!

ECHO is off.

Any help is appreciated!

Thanks a lot!

Reply
0 Kudos
sid101020203030
Contributor
Contributor

If we also specify the path of the WSDL's along with the genvimstubs.cmd in VS command propmt

Example: C:\visdk\SDK\samples\DotNet>genvimstubs.cmd C:\visdk\SDK\wsdl\vim25

got the Vimsevice2005 and vimservice2005.xmlserializers dll's generated at samples/dotnet diretory.

Thanks!

Reply
0 Kudos