REST :The Way to Call a Web Service Method in a REST way.

Last post 05-20-2008 5:51 AM by Guang-Ming Bian - MSFT. 3 replies.

Sort Posts:

  • REST :The Way to Call a Web Service Method in a REST way.

    05-16-2008, 12:37 AM
    • Loading...
    • mit_ce
    • Joined on 05-15-2008, 4:46 AM
    • India
    • Posts 46

    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.

    Thanks,
    Mitesh.

    Please Mark this as an Answer if it resolves your problem.
    Filed under:
  • Re: REST :The Way to Call a Web Service Method in a REST way.

    05-19-2008, 5:24 AM

    Hi mit_ce,

    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.

    Best regards,
    Guang-Ming Bian - MSFT

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: REST :The Way to Call a Web Service Method in a REST way.

    05-19-2008, 9:11 AM
    • Loading...
    • mit_ce
    • Joined on 05-15-2008, 4:46 AM
    • India
    • Posts 46

     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.

     

    Regards,
    Mit.
     

    Thanks,
    Mitesh.

    Please Mark this as an Answer if it resolves your problem.
  • Re: REST :The Way to Call a Web Service Method in a REST way.

    05-20-2008, 5:51 AM

    Hi Mit,

    For difference between REST way and soap way:

    http://www.petefreitag.com/item/431.cfm

     

    For how to build and invoke web service with rest way:

    http://www.xfront.com/REST-Web-Services.html

    Best regards,
    Guang-Ming Bian - MSFT

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (4 items)