This post assumes you have basic knowledge about web services but have no idea how to make one using the .NET framework. To create a web service in .NET in Visual Studio 2005,

Go to File > New > Web Service , choose ASP.NET Website and name the Project WebService1 (although you can name this any way you want).

Visual Studio 2005 will automatically create the necessary files for you. Note that since it created a .NET web service file called Service.asmx, a code behind file is also created called Service.cs (assuming your language is C#) under the App_Code folder.

Notice in Service.cs, a function that returns a string called HelloWorld is pre-made for you. Now, just compile your project and the IE browser will pop up loading the list of web services found. You can then see your HelloWorld web service there.

Click on the HelloWorld web service link and click the INVOKE button to check if the web service is running perfectly. Once you click on the INVOKE button, you will see an XML response similar to the one below

That’s it. You can see that your web service is running perfectly. What is a web service without having something to use them right? We shall now create a client to access and use the web service. This is pretty important so be careful how you add a new application to your existing project. To create an application within the same project,

Go to File > Add > New Project , choose Windows Application and name it WSClient. Once added, you will see that your Application and Web Service souce files are now in the same project.

To make use of the HelloWorld web service, right click WSClient in the Solution Explorer and choose Add Web Reference.

Select Web Services in this solution and it will look for available web services.

Choose the Services labeled Service and type in localhost as the web reference name (the web reference name is entirely up to you).

Now we head on to the Program.cs file so we can add code within the Main() method to access the web service. Add the following code.

Right click WSClient in the Solution Explorer again and select Set as Startup Project. This ensures that your application will be run and accesses the web service. If you know debugging, place a breakpoint on Console.ReadlLine(). Click Debug from the menu and choose Start Debug. Now, see the Hello World string outputted to the console.

If you are an avid gadget lover who is constantly on the hunt for new gadgets out in the market, Gadget Advisor provides all that. Rather than seeping through lots of news, it provides you with the latest and up to date stuffs considered the best, are displayed to you so you can be sure that items displayed are the top gadgets. The site looks professional and clean. Navigating around is pretty much easy. After some surfing through the site, I could tell the theme looks like a blog rather than some sort of commercial site.

After checking its computer software section, wanting to check on the best Windows software downloads for a video converter, I chanced upon a review for Blaze Media Pro. Good review for a great all in one software. I also stumbled upon some of the best Firefox extensions. Of course, these can all be found in Firefox’s website but I barely go there. Upon checking it out, I did manage to install one of them, the AdSense checker, which lets you keep track of your AdSense earnings without having to login to your AdSense account. Pretty Cool.

You can subscribe to their RSS feed if you wish to be updated all the time rather than having to go to their site to check out any new updates.

To enable word wrapping in Visual Studio 2005, follow the instructions below.

On the Tools menu, select Options.
Open the Text Editor folder
Open the All Languages folder
Select General

Under Settings – select the Word wrap option

If you enable visual glyphs for word wraps, little arrows appear on the end of the line, signifying that the next text is word wrapped to the next line.

Related Posts Plugin for WordPress, Blogger...