Tech Off Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Easiest way to create a Web Service?

Back to Forum: Tech Off
  • User profile image
    BitFlipper

    I have done all sorts of development but not really any web related development. So as a noob in this area, I have a question: What is the easiest way to create a Web Service?

    Specifically, is it possible to create a web service that does *not* require IIS or a similar server? For instance, can I create just an exe using .Net 4.0 that when executed, listens on a specific port and responds to SOAP web requests?

    I ask because I want to create such a web service that handles simple requests but I don't want to install a full-blown server just for this.

    Is this possible?

  • User profile image
    Sven Groot

    I think you can do this with WCF using the ServiceHost class. I know it's also possible with .Net Remoting, but I'd recommend using WCF unless you have a good reason not to.

  • User profile image
    BitFlipper

    @Sven Groot:

    Excellent! Actually, WebServiceHost looks like it might be a better fit. Didn't know it was going to be that easy (looking at the example), unless I'm missing something...?

    EDIT: Actually, after looking a bit more into ServiceHost and WebServiceHost, it looks like ServiceHost would work better for me.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.