We help IT Professionals succeed at work.

ASP.net VB.net xml code

Hi

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
eRes-OTA-API.ZIP
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
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)?
Roopesh ReddyIT Analyst
Top Expert 2012

Commented:
Hi,

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...
Murray BrownASP.net/VBA/VSTO Developer

Author

Commented:
Hi. I am trying to interact with the online booking system which involves posting a string to an http server
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
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?
Murray BrownASP.net/VBA/VSTO Developer

Author

Commented:
Hi. Yes Bob. That's exactly what I need. Thanks
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
Fabulous!!

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.

Examples:

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

Murray BrownASP.net/VBA/VSTO Developer

Author

Commented:
Great Thanks very much

Explore More ContentExplore courses, solutions, and other research materials related to this topic.