In order to avoid conflicts with your existing ASP.NET web framework it is recommended
to host your ServiceStack web services at a custom path.
This will allow you to use ServiceStack together with an existing web framework
e.g. ASP.NET MVC 3 or
FUBU MVC, etc.

3. Creating your first Web Service

For simplicity we will add the Web Service and the start up script all in the same
Global.asax.cs. To do this Right-click on your project and go
Add -> New Item then select the Global Application class.

CONTENT TYPE

HTTP GET

The url to call your web service using only the url and the query string to populate
the request.

NOTE: Service Stack also lets you submit any arbitary complex type (using JSV format)
via the query string or form data

HTTP POST CONTENT TYPE

You can HTTP POST the 'Content Type' representation of the Request DTO to the same
url. Check the links to the metadata page for examples of this.

HTTP POST FORM DATA

As an alternative to posting the Content Type, each service also accepts x-www-form-urlencoded
Content-Types allowing you to call each web service using a HTML FORM. Here is the
HTML for the live examples:

This makes it very easy to Ajax-ify your existing HTML forms, cleanly, without messy
configuration and generated code mandated by other options.

Calling Web Services from Code

Using DTOs to define your web service interface makes it possible to provide strong-typed
generic service clients without any code-gen or extra build-steps, leading to a
productive end-to-end type-safe communication gateway from client to server.

All REST and ServiceClients share the same interfaces so they can easily be replaced
(for increased perf/debuggability/etc) with a single line of code as seen in the
Hello Service Integration tests.