Creating NanoRIA #2.1: .NET 3 Client
Tuesday, January 9th, 2007In the previous tutorial we’ve created very small Web Service, which provides us with news, images and weather. Now we will create client to our Web Service in Microsoft Blend
So lets start Blend and C# Express, and create new project called “MiniRIA”, and lets start to develop!
But before we’ll actualy start to develop, we need WebService proxy class that call remote operations on our server. We’ll do this same way we did with GlobalWeather service:
- Start your WebService from Visual Web Developer, and remmember it’s url, you can check in the Task Bar.
- Open Command Promt, and type:
wsdl.exe HERE_IS_URL /out:Path\to\project\Service.cs
Now let’s think a bit (yeah we have to do this stuff sometimes), since I’m using Windows Vista I really miss old Windows XP window layout, do you remmember blue panel with expanding toolboxes on your left, and content of a folder on your right? We’ll do similar layout in our application. On left side we’ll place weather and media information, and news on right. So we have to create 3 main UI Controls:
- Weather control - holds information about weather.
- News control - with propaganda :D.
- Flickr control - with images.
Weather control will hold some Labels and TextBoxes controls, News and Flickr will contain ListBox instance, which will be filled with content (images for Flickr and news for News).
(more…)