Last post Aug 17, 2010 08:54 PM by Sil
May 16, 2008 04:37 AM|mit_ce|LINK
Is there anyone who can show me the way to call a method through a web service by REST way.
I am using C#.NET, ASP.NET 2.0, SQL Server 2005 for my application and to add a web reference i have only WSDL file.
I want to just CALL a Web Service method in a REST way.. (I dont know how does it differ from SOAP call ?).
Do i need to add anything special in my code so that it becomes a REST way call of a method instead of SOAP ?
I have read lots of theory about this on internet but coudn't find any technical detail about to implement this.
Please provide me technical details to make this happen.
I want exact code to achieve this.
Thanks in advance.
May 19, 2008 09:24 AM|Guang-Ming Bian - MSFT|LINK
Since you have WSDL file, you can use WSDL tool to generate web service proxy class:
How to: Generate an XML Web Service Proxy
Web Services Description Language Tool (Wsdl.exe)
While you get proxy class, you can develop it via proxy class.
Guang-Ming Bian - MSFT
May 19, 2008 01:11 PM|mit_ce|LINK
Hi Guang-Ming Bian - MSFT,
Thanks a lot for replying this post.
I have already used this tool and created a proxy class file. I just want to call the method which is already developed in a REST way.. But i don't know how the way of calling by REST method is different from SOAP way ?
I want also technical details about how this call would be possible from an C#.NET application. There are so many theoretical articles available on internet but not even a single doc provides any technical implementation.
Please suggest me how to call my web service with REST method.
May 20, 2008 09:51 AM|Guang-Ming Bian - MSFT|LINK
For difference between REST way and soap way:
For how to build and invoke web service with rest way:
Mar 13, 2009 02:06 PM|desaivishal11|LINK
Visit this blog for more info:
Jul 09, 2010 10:59 AM|bakkianathan|LINK
Hi .... the above link gives me a theortical approach to creating the rest webservice.
Can you help me out how to invoke/call the webservice in raw c# code.
I have tried with HTTPWEBREQUEST ...... to invoke the rest webservice ..... it takes long time for request and response.
so if any of guys know abt rest webservice help me out in
i) how to invoke a rest webservice.
ii) how to create a proxy class for rest webservice.
iii)how to optimally call a rest webservice in c# code.
if any help that would be very much appreciated.
Aug 17, 2010 08:54 PM|Sil|LINK
Please take a look at this article. It is talking about calling yahoo services, but the approach can be used for other Rest services too.
I hope that helps.