Thread: C# Web Services

  1. #1
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438

    C# Web Services

    Creating a web centric application has never been so easy.

    Link to Web Service
    Last edited by CompiledMonkey; 04-20-2002 at 11:00 PM.

  2. #2
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    Nobody really interested in .NET yet?

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    The link doesn't work for me. I just get an 'unknown server' message. Web Services are easy. Is this more than the normal tutorials show ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    The link is working again, sorry about that. Also, it's not much. It was my first try at Web Services. I am just shocked at how easy it is to do.

  5. #5
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    hmm...Hey chris, care to PM me where you got some web services tuts from, because I think brinkster can handle them and it could be fun

  6. #6
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    I got them from my book (Programming C#: 2nd Edition from O'Reilly). It's really quite simple to setup. Just install IIS on your box. Then in VS.NET create an empty web service (project). It will generate the code needed to run the application as a web service. Here is the important part, which any method you want to be seen over the web service add [ WebMethod ] over it, example...

    Code:
    [WebMethod]
    public double Add(double x, double y) {
    	return x + y;
    }
    Then go to the URL you provided when you started the web project (something like http://localhost/projectname) and you will be able to use your methods. Simple huh?

    I feel so confortable with C#, it's so much like Java is alot of places it was easy to pick up.

  7. #7
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    You actually shelled out the bucks for VS.NET? Or you still using Beta2?

    Alright, I'm gonna try that out on my Beta2 system, and maybe my C# book has WebService examples. Thanks.

  8. #8
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    Yeah, I'm using the full version of VS.NET. Working in IT has its advantages.

    Good luck with this stuff, I'm sure you'll have no problems. It's very simple.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. basic questions about web services development
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 07-13-2008, 09:30 AM
  2. MS Web Services Question
    By mercury529 in forum Windows Programming
    Replies: 0
    Last Post: 11-14-2006, 06:36 PM
  3. Where to host web services?
    By alphaoide in forum Tech Board
    Replies: 11
    Last Post: 03-07-2005, 10:24 AM