views:

150

answers:

1

I am trying to create my first webservice. I've been googling for a tutorial or examples and most of what I find is from previous versions of Visual Studio and say to create a new ASP.Net Webservice...but that doesn't exist in 2010!

What I need to do is have the service receive 2 strings, an agency and a man number. Then run a query to get some information and return a string with a date and time back to the requestor. I need to have a web interface available to call the service as well.

Any guidance on what I need to do to create the service in Visual Studio 2010 in C# will be appreciated!

Thanks! Leslie

Update: I've just been told that this process needs to authenticate the users...can someone guide me to information on implementing certificate or digital signatures into my web service? I've looked but most of what i'm finding is for authenticating through Active Directory or some other maintained list with usernames and passwords.

+4  A: 

This puzzled me too. There's another puzzle to be had when you try and add a reference to an ASP.NET Web Service too, but I'll let you have fun with that one.

Change the target framework version in the dropdown list to .NET framework 2 and choose Web on the left hand side when creating a new project and it will appear.


Actually, I'm not going to be mean. If you are going to reference the web service from an application built using.NET 3.0 or higher:

Go to Add Service Reference Go to Advanced Click Add Web Reference at the bottom of the dialog.

fletcher
hooray! you're right - by changing the Framework it appears! I'll accept the answer as soon as SO lets me!
Leslie
Ok I don't know if I'm going to "reference the web service from an application built using .NET 3.0" or not....like I said this is my first one!
Leslie