Solved

Connect To API (without a wsdl) and Call Methods

Posted on 2013-05-29
3
295 Views
Last Modified: 2013-06-10
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
0
Comment
Question by:cat4larry
  • 2
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39205811
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  : )
0
 

Accepted Solution

by:
cat4larry earned 0 total points
ID: 39206563
I'm really embarrassed actually.  I should have RTFM a little further.  It gives complete examples.  I just need to chose the correct endpoints and then perform the correct action (insert, update, delete).  simple request/response JSON stuff.  For some reason I thought there would be much more to it than that.
0
 

Author Closing Comment

by:cat4larry
ID: 39234131
I figured it out myself
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now