Solved

Consuming XML from REST-ful services

Posted on 2014-02-12
3
527 Views
Last Modified: 2014-02-17
After about 2 weeks of reading just about anything there is to read online about WCF, REST-ful services and consuming XML, I am more confused than ever. I was hoping someone could simplify this concept for me.  Here is what I need to do, but have no idea how to do it the "right" way (i.e. the most efficient way)

1. I have to send a GET request to a third-party URL (authenticated) - I have done this successfully in a web browser, so assured it works.
2. This request returns XML
3. I need to read that XML and display it on our web page.

Sounds very simple, but where I am unclear is:

1. Do I have to write a service on my end to send the request or is this just something I can do in my code-behind?
2. Do I have to write a service on my end to receive the request or is this something I can do in my code-behind?

I'm pretty sure I can figure out how to deserialize the XML once I get it, but I'm not sure how to get it from point A (the third-party server) to point B (my server).  I would never be processing more than 1 record at a time, or doing a POST or DELETE. It would only be getting one (extremely long) XML file based on an ID I send.

I have read so many different articles and approaches that I think I confused myself.
0
Comment
Question by:vcbertini
[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 57

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 39855437
1. No - you just make a GET request to the resource that returns the XML
2. No - part of making the request will be to get the returned data.

Have you had a look at this article from Microsoft?

http://msdn.microsoft.com/en-us/library/hh534080.aspx
0
 

Author Closing Comment

by:vcbertini
ID: 39865463
Great, thank you.  I think I finally got some code in place to read the XML in my code-behind. Now I have to figure out how to process it.
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39866660
You are welcome - thanks for the points
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert Silverlight ERP To Angularjs,HTML5 3 109
Problem to copy file 14 92
C# LINQ 5 45
c# deserialize JSON from web service using JsonConvert 9 63
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

752 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