Link to home
Start Free TrialLog in
Avatar of cat4larry
cat4larry

asked on

Connect To API (without a wsdl) and Call Methods

I need to connect to a web API that has no wsdl file.  It's a RESTful JSON service.  So, first off, I'm guessing that I can't add it as a service reference in my project.  Once I connect I need to be able to call various methods.  Can someone provide me with a good example of this?  I've looked in a few spots including http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client but the example does not seem to include a call to a method.

Thanks
Avatar of kaufmed
kaufmed
Flag of United States of America image

RESTful services don't use WSDLs--SOAP services do. A RESTful service relies on the existing HTTP protocol to send requests and receive responses from a server. You can basically think of it like your browser requesting a web page--sans browser.

Were you given any documention describing the API?



...and no, you cannot "Add Service Reference" to a RESTful service  : )
ASKER CERTIFIED SOLUTION
Avatar of cat4larry
cat4larry

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cat4larry
cat4larry

ASKER

I figured it out myself