locked
Using Http request and response

    Question

  • Hi,

    I have used the wsdl web services in c# before. But I am not sure what is the best way to interact with another system using their API. I have the url to access the API:

    https://api.xyz.com/supplier/orders/?XXX

    But I am not sure how am I going to send request and receive response in c# application. 

    Any help.

    Thanks

    Wednesday, September 26, 2012 1:48 PM

Answers

  • Hi,

    In case of WSDL, you can add reference and proxy class will be created for accessing web service methods.

    In case of restful services, you can use WebRequest and WebResponse classes of .net which will post and get data from restful service url.

    Depends on service you can adopt any of the approaches.


    Thanks and Regards, Shailesh B. Davara

    Thursday, September 27, 2012 1:42 PM