Free Visual Studio for Web Service Development


You might not have noticed but the recently announced Visual Studio 2005 Express Beta allows for doing Web Service development.  Download the Visual Web Deveveloper 2005 Express Edition Beta and one of the types of projects you can create is a Web service project.


Here’s the default C# Web service project:


using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;


[WebServiceBinding(ConformanceClaims=WsiClaims.BP10, EmitConformanceClaims = true)]
public class Service : System.Web.Services.WebService {


    [WebMethod]
    public string HelloWorld() {
        return “Hello World”;
    }
   
}


You can also develop in Visual Basic or C++.


   -Matt

Comments (3)

  1. Question — did you reformat the braces to be in the form

    line {

    indented

    }

    instead of the more common (in vs.net 2003, at least)

    line

    {

    indented

    }

    ?

  2. Matt Powell says:

    Nope…the opening braces appear at the end of the lines.

    -Matt

  3. Par Triv says:

    Why is it that when I declare my Namespace in the WebServiceBindings line as something other than tempuri.org, I still get the warning stating that I am using the namespace tempuri? After viewing the WSDL i see that my namespace has only applied to the import namespace, the ‘target namespace’ remains tempuri.org, why is this happening?