[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

I need to retrieve information in xml  from multiple websites using POST/GET methods as required

Posted on 2008-11-13
7
Medium Priority
?
200 Views
Last Modified: 2013-12-17
I need to retrieve information from multiple websites accordingly and save information into sql server. Based on carriers, we need to retrieve information from an xml/webservice/as parametrized string using POST/GET methods.

I am a beginner and would like to know what would be the best approach..

Overview:
I will be working with a third party application which has a "get least freight" button and once clicked we need to get the least possible freight from the list of carries.
0
Comment
Question by:KishNovoice
  • 5
  • 2
7 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22960236
Wow, it sounds like you are going to have fun, since that is not really an easy process, and you will have a lot to learn.  As with anything like this, you gotta start somewhere.  This appears to be a mix of different technologies, and deciding on the "best" course of action is difficult without knowing what is involved.

I believe that you need to look into creating and using web service references, parsing XML, and using the System.Net.HttpWebRequest, since the System.Net.WebClient is just a wrapper for an HttpWebRequest, and is only a subset of the HttpWebRequest class.  

The details for your requirement are going to come in time.
0
 

Author Comment

by:KishNovoice
ID: 22962389
Thanks for the suggestion TheLearnedOne. So do you suggest me following this path..

click triggers a event -> function gets the input like To and From zip codes -> queries each website url one after other -> based on the method, validates the response and gets the Rate and Days information and Save it to database.

My question would also be how would I convert the document to XMLformat so that I could read the nodes from HttpWebResponse..

Thanks a lot..

Kish


0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22962473
Kish,

It is hard to know what I am really going to suggest.  Like I said before, that depends on what type of web site/web service you are pulling information from.  If you can provide a little more detail, I might be able to suggest a "better" course of action.

Bob
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
LVL 96

Expert Comment

by:Bob Learned
ID: 22962500
Creating an XmlDocument is pretty easy, and can take different forms:

Simple example:

using System.Xml;

XmlDocument document = new XmlDocument();
document.Load(fileName);

foreach (XmlNode node in document.SelectNodes("//node")
{
    string name = node.Name;
    string innerText = node.InnerText;
}

The SelectNodes method, along with SelectSingleNode, takes a valid XPath expression, so you could get the full power of XPath to parse an XML document.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22962509
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 22962515
You can also create an XmlDocument instance, and load the document from a string:

document.LoadXml(xmlText);
0
 

Author Comment

by:KishNovoice
ID: 22962789
Thanks LearnedOne you answered my question..
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

834 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