Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


ASP.net VB.net xml code

Posted on 2012-08-16
Medium Priority
Last Modified: 2012-08-18

I have just over a year of ASP.net VB.net coding experience. I am trying to integrate my website to a travel booking system and was sent the link on the xml data that I would get from the xml system: http://www.mtbeds.co.za/content/detail/162518
I was also sent the API attached.

Not sure how to go about this from an ASP.net perspectice
Question by:Murray Brown
  • 3
  • 3
LVL 96

Expert Comment

by:Bob Learned
ID: 38302616
What kind of help do you need?  Do you need to know how to make the request?  Do you need to know how to parse the XML (LINQ-to-XML)?
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 38303508

If you are looking for XML parsing in VB.NET - http://www.codeproject.com/Articles/4826/XML-File-Parsing-in-VB-NET

NOTE: You can do that using Linq too!

Hope it helps u...

Author Comment

by:Murray Brown
ID: 38304092
Hi. I am trying to interact with the online booking system which involves posting a string to an http server
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 96

Expert Comment

by:Bob Learned
ID: 38304786
What is your specific question?  What do you need help with?

Do you need to know how to post a string using something like System.Net.WebClient or HttpWebRequest?

Author Comment

by:Murray Brown
ID: 38307393
Hi. Yes Bob. That's exactly what I need. Thanks
LVL 96

Accepted Solution

Bob Learned earned 2000 total points
ID: 38307988

Let's start with the simple (WebClient).  This class is a wrapper for the HttpWebRequest, and can simplify the complexity.  Once you find out about the limitations for the WebClient class, then you can move up the HttpWebRequest.


Upload form values with URL encoding:

Using client As New WebClient()
  Dim values As New NameValueCollection()
  values.Add("name", "value")
  Dim response = client.UploadValues(URL, "POST", values)
End Using

Open in new window

Post a string:

Using client as New WebClient()
    Dim response = client.UploadString(URL, "name=value")
End Using

Open in new window


Author Closing Comment

by:Murray Brown
ID: 38308262
Great Thanks very much

Featured Post


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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

577 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