Solved

Connect To API (without a wsdl) and Call Methods

Posted on 2013-05-29
3
293 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 74

Expert Comment

by:käµfm³d 👽
Comment Utility
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
Comment Utility
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
Comment Utility
I figured it out myself
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

7 Experts available now in Live!

Get 1:1 Help Now