Hi guys good day. I just wanna ask if anyone here tried writing REST web service in C#?
Links or articles would greatly appreciated. :wave:
Printable View
Hi guys good day. I just wanna ask if anyone here tried writing REST web service in C#?
Links or articles would greatly appreciated. :wave:
I think people in this forum take a lot of rest that they didn't notice this thread. :afrog:
Ok I tried using wsdl.exe of the .net framework to generate c# code from wsdl file so that I could easly retrieve the value but the thing is it doesn't generate into c# code throws a lot of warnings.
btw the wsdl file generated from cxf.
No one gets paid to do this. We are all volunteers, and we are here when we are here.Quote:
Originally Posted by mar_zim
Does this help?
I thought robdog gets paid in doing this. :afrog: :DQuote:
No one gets paid to do this. We are all volunteers, and we are here when we are here.
Well thanks hack.
It's very easy to do REST web services in ASP.NET. If you think about it really, a REST 'service' is nothing but a glorified web page which returns XML or strings to the calling client. Just change the returned contenttype when returning the string/xml data.
What I like about Hack's link, which goes to http://www.codeproject.com/KB/archit...icesPart2.aspx , is that it talks about DELETE as well. What I find unfortunate in the world of REST is that people usually implement POST and GET because it's simple, but I haven't seen a lot of examples using DELETE and PUT. In an ideal world, those would be used as much as GET and POST, since they represent the type of action you should be performing.
it's easy with 3.0, even easier with 3.5 ..
but how to consume REST webservice with asp.net 2.0 ?