REST web service in C#

Visual Studio 3.5 C#
New to REST, familiar with SOAP, New to Android OS
I need to create a very simple REST web service (in VS 3.5) for consumption by Android. I need an example that returns "Hello World". Please include a way to hit the service from the browser so I can see the output. I think with this I can figure out how to make it do more than just return a string.

Thanks!
Bob

lateapexAsked:
Who is Participating?
 
CSecurityConnect With a Mentor Commented:
As I said, if hosting provider allowed running web services and servicemodel is registered with IIS and ASP.NET and it's extensions installed in hosting, you can upload all files (web.config, all aspx and other necessary files) on a folder in your site. If you get 404, it means hosting provide doesn't allow it. Otherwise with a simple upload it will work perfect!
0
 
lateapexAuthor Commented:
I read these but I can't find an example of how to do this, load it on a webserver (I use a shared hosting IIS7) and it works.

Thanks
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
CSecurityCommented:
See this also:
http://msdn.microsoft.com/en-us/netframework/cc950529.aspx

Simply create your web service and upload result files in IIS7 folder. That's all
0
 
CSecurityCommented:
Your hosting should allow you to do so. Then you can run servicemodelreg -i (or ask hosting provider to do so)

Then deploy your web service and it should work
0
 
lateapexAuthor Commented:
CSecurity,
You have me close, I have a service that outputs the correct XML in the browser.
I'm still confused about the hosting environment. I'm used to creating a dot net web site (with or without a web service) and publishing it to the wwwroot of the hosting service. Since the new service has it's own webconfig file, how do I include the new service in a site?
Thanks for your patience!
Bob
0
 
lateapexAuthor Commented:
Thanks again!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.