• Skip to site navigation
  • Skip to blog entries
  • Skip to archive page
  • Skip to right sidebar

Microsoft

Eric Sloof - NTPRO.NL

  • NTPRO.NL
  • Online Training
  • VMworld
  • Videos
  • Tools
  • iTunes
  • About

Sunday, 7 February 2010

Building the SDK .NET Samples Using Visual Studio 2008

ntpro.nl - FlickriverOne of the first things I did after I signed-up for the Microsoft Developer Network (MSDN) was downloading Visual Studio 2008. I’ve installed Visual Studio 2008 in a newly created Windows 2008 virtual machine and copied the vSphere Web Service SDK to the root of this VM.

Before you can start with building the Samples (C:\Web Service SDK\SDK\samples\DotNet) you have to generate the stubs, Paul Davey over at Xtravirt has created a real good work around for Visual Studio 2008.

• Open the visual studio command prompt.
• Enter the following: set VSINSTALLDIR="C:\All My Apps\Microsoft Visual Studio 9"
• Copy the two WSDL files that you want to use (either 2.5 or 2.0) to the \SDK\samples\DotNet folder
• In the visual studio command prompt, change directory to the \SDK\samples\DotNet folder
• Enter the following command: genvimstubs.cmd .\

If you don’t want to hassle with building your own (VimService2005.dll) and (VimService2005.XmlSerializers.dll) or you’re a bit lazy, there’s an alternative. You can install Xtravirt’s RDP plug-in and copy the two dll files from the program files directory (C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Plugins\XtravirtRDP) to the Samples DotNet directory (C:\Web Service SDK\SDK\samples\DotNet). Now you can start build the C# (.NET) samples using Microsoft Visual Studio 2008.

• Start Visual Studio 2008
• Go to the menu option File – Open – Project/Solution
• Navigate to the C:\Web Service SDK\SDK\samples\DotNet\cs\ Samples2005.sln file.

You’re now about to start the Visual Studio Conversion Wizard because the Samples2005.sln was created in a previous version of Visual Studio. It must be converted to the format used by Visual Studio 2008. Click <Next> to proceed.

After the conversion go to the menu option Project/ Add Reference, click the Browse tab and locate the (VimService2005.dll) and (VimService2005.XmlSerializers.dll) files.
Check out the label of the namespace, if namespace name is not 'Vim25Api' you have to do a quick Find and Replace from the edit menu. For instance, replace “Vim25Api” with “VimApi”.
Go to your Solution Explorer and locate the SimpleClient2005, this is a simple standalone client whose purpose is to demonstrate the process for Logging into the Webservice, and get Container contents starting at the root Folder available in the ServiceInstanceContent. Right click it and choose for the Build option. After the build is complete open a command prompt and navigate to the newly build executable.  Execute te following command:

C:\Web Service SDK\SDK\samples\DotNet\cs\SimpleClient\bin\Debug>SimpleClient.exe "https://192.168.178.250/sdk" "administrator" "vmware"

A list with all your virtual machine will scroll over the screen. I’ve created some screen dumps of te whole process, have fun and don’t forget to sign up VMware's Script-O-Mania contest.

Posted by
Eric Sloof
in Microsoft at 14:45 | No comments | No Trackbacks
Bookmark and Share

Saturday, 6 February 2010

How to migrate the vCenter database to Microsoft SQL Server 2008

If you want to relocate your vCenter database from a local express SQL server to a central Microsoft SQL Server 2008, you can use the SQL Server Import and Export Wizard to copy and transform data between supported data sources and destinations.

The purpose of the SQL Server Import and Export Wizard is to copy data from a source to a destination. The wizard can also create a destination database and destination tables for you. However, if you have to copy multiple databases or tables, or other kinds of database objects, you should use the Copy Database Wizard instead.

I’ve created a little Jing movie which demos the migration from a local SQL express database to a central Microsoft SQL Server 2008. Continue reading "How to migrate the vCenter database to..." »
Posted by
Eric Sloof
in Microsoft at 18:22 | 2 Comments | 1 Trackback
Bookmark and Share
(Page 1 of 1, totaling 2 entries)


Twitter RSS FeedLinkedIn

www.hetesambal.nl

Veeam Webinar with Doug Hazelman: 5 Steps to Successful Backup & Replication for Hyper-V! Watch it now >>

Recent Entries

Video - Install vSphere Syslog Collector and configure ESXi logging
Friday, January 20 2012
Storage Design and Implementation in vSphere 5.0 - The Rough Cuts
Thursday, January 19 2012
Top 25 Free Tools for VMware vSphere presented by David Davis and Kendrick Coleman
Monday, January 16 2012
LG Android running VMware Horizon Mobile hands-on
Saturday, January 14 2012
Forbes Guthrie has released the vSphere 5 vReference Card
Thursday, January 12 2012
VMworld Session - VMware vMotion in VMware vSphere 5: Architecture, Performance & Best Practices
Wednesday, January 11 2012
Voice Over IP (VoIP) Performance Evaluation on VMware vSphere 5.0
Tuesday, January 10 2012
VMware vCloud Director 1.5 Performance and Best Practices
Monday, January 9 2012
VMware vCenter Site Recovery Manager 5.0 Performance and Best Practices
Sunday, January 8 2012
New Training - VMware vSphere 5 Design Workshop
Saturday, January 7 2012

Archive

  • February 2010 (2)
  • Recent...
  • Older...
Based on the s9y Bulletproof template framework
Powered by s9y – Template by Bulletproof development team.
  • NTPRO.NL
  • Online Training
  • VMworld
  • Videos
  • Tools
  • iTunes
  • About