0

I am trying to implement a feature. But I've never had anything to do with "Web Services" before, other than using them.

I have a desktop application, and I want that application to be able to sort of "post" some information (i.e. email address, username, user-selected options (just plain text) etc) to an application or "web service" on my ASP.NET web server.

Can somebody please guide me in the right direction? How would I accomplish this?

Thank you :)

Jason

harpo
  • 41,820
  • 13
  • 96
  • 131
  • 2
    For Windows Communication Foundation, see http://stackoverflow.com/questions/1343896/good-and-easy-books-tutorials-to-learn-wcf-latest-stuff . – Matthew Flaschen May 01 '10 at 05:16

3 Answers3

2

I would skip the classic web-service and start learning WCF.

http://blogs.msdn.com/trobbins/archive/2006/11/26/how-to-building-a-wcf-service-and-consumer.aspx

Faruz
  • 9,909
  • 10
  • 48
  • 66
  • 1
    I concur. However, for learning, asmx is easier and gives results now. That's just as valuable when learning. – jcolebrand May 01 '10 at 05:23
0

Assuming that you have Visual Studio, it is pretty easy: go to make a new project, under C#\Web, there is a project type of web service. Make that and you are immediately having a sample web service (ASMX). You can start from there.

  • Awesome, thank you for this. I'm about to try it now; I hope that option's available for Exprses editions –  May 01 '10 at 05:22
  • It should, asmx is a file, and it compiles to a .NET supported facility. Express shouldn't limit that. – jcolebrand May 01 '10 at 05:24
  • Nope, option's not there in Visual Studio Express Edition :( –  May 01 '10 at 05:24
  • +1 anyway. This'll come in handy when/if I ever decide to buy Visual Studio –  May 01 '10 at 05:25
  • Are you using Visual Studio Web Developer Express? And which version are you using? 2008 or 2010? – TimeSpace Traveller May 01 '10 at 05:29
  • Oohhhhhh! I'm so silly. I was opening Visual Studio C# Express lol. Just a habit I guess :P I have both versions of Web Dev (08 and 10) –  May 01 '10 at 05:31
  • when you start your new ASMX service, there is a default implementation of "Hello World". Just run the project and browse to your service to see a working example. – Zachary May 01 '10 at 05:31
  • OK, so I got the wrong impression too. lol I forgot that Express is not integrated solutions; in this case, you should be able to find it under the Web Dev. If not, I would call it strange. – TimeSpace Traveller May 01 '10 at 05:35
  • Nah, I think it is different in Vis. Stdo. Express lol, It just comes up with some weird page when I hit the debug button. What i'm trying to accomplish is just have some kind of application sitting on my asp.net server that just accepts and stores plain text data as it arrives without any webpages etc. Oh but maybe this is the right way i'll keep checkin it out and see what I can conjure up lol –  May 01 '10 at 05:42
  • Yes, that weird page is the parameter input mock page. The basic of Web Service is using XML to transmit method call, so the weird mock page would accept your parameters, and forms the necessary XML to transmit to your web method. It's the correct behavior. Try more. :D – TimeSpace Traveller May 01 '10 at 05:44
  • Thanks heaps TimeSpace! :D Hey do you wanna add me to msn lol? –  May 01 '10 at 05:50
  • I would love to~ What's your MSN ID? – TimeSpace Traveller May 01 '10 at 06:15
  • yay :D it is: jason@jt-software.net –  May 01 '10 at 22:49
0

U can also start learning the basics of the Webserivice from here

http://www.w3schools.com/webservices/ws_intro.asp

Phani Kumar PV
  • 906
  • 11
  • 22