How to consume data from the web service in window application c#?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brinda86
    New Member
    • Feb 2015
    • 1

    How to consume data from the web service in window application c#?

    Hello friends,

    I am developing project on window application in c#.net. I want to consume the data from the web service and that web service is developed in PHP. So, How to give the reference of that web service?
  • Joseph Martell
    Recognized Expert New Member
    • Jan 2010
    • 198

    #2
    That depends: how is the web service formatted? Is it a full SOAP/XML web service with a WSDL? If so you can use Windows Communication Foundation (WCF) to automatically import the types and query methods.

    If the formatting is loose and does not use formal function and data definitions then I believe you are would have to write the code to perform an HTTP request and then parse the response.

    Comment

    Working...