Solved

Connect To API (without a wsdl) and Call Methods

Posted on 2013-05-29
3
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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