Solved

Use VB to request XML return data from a web server

Posted on 2006-10-29
7
190 Views
Last Modified: 2010-04-30

I have a client server that supplies a persons ID in a request to a central server over the internet. Both use classic ASP. The request is sent to a page such as "https://replay.canada.org/rt/PersonInfoXML.asp"

The central server then searches its database and if the ID is found it returns a XML file containg fields such as:  ID, FirstName, LastName etc.

Presently this is being done server to server only, and only by using "ASPTear" by alphasierrapapa.com


I would like to be able to send the request to the webpage and recieve back the XML file just by using a VB6 program.  I could then continue using the data in that VB program.

If it can not be done in VB6 then VB2005 (.net), though the remainder of my old program will then need upgrading by me.(much time NG)

Thanks for any help in this regard,
      UB


0
Comment
Question by:Usherb
[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
7 Comments
 
LVL 29

Accepted Solution

by:
Nightman earned 168 total points
ID: 17830073
Have a look at the MSXML libraries (you can download the SDK's from microsoft.com) - this can be done. I am assuming that the XML is simply part of the response stream (and not an actual file) so this quite possible.

You can then either use the DOM (recommened) or write you own parser (seems a little silly)
0
 
LVL 14

Assisted Solution

by:Shiju Sasidharan
Shiju Sasidharan earned 166 total points
ID: 17831706
0
 
LVL 3

Assisted Solution

by:herreruud
herreruud earned 166 total points
ID: 17832237
Hi,

You could go with MSXML directly as proposed above, ore you could use WSDL/SOAP wich are (Platform/language-independant) standards availible for exactly what you are trying to do.

You should start by downloading the Microsoft SOAP toolkit 3.0: http://www.microsoft.com/downloads/details.aspx?familyid=c943c0dd-ceec-4088-9753-86f052ec8450&displaylang=en

Read the documentation; then tell me if you need help :)
0
 
LVL 29

Expert Comment

by:Nightman
ID: 18025653
Recommend Split - Nightman, shijusn, herreruud
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 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