Solved

Use VB to request XML return data from a web server

Posted on 2006-10-29
7
189 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
  • 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 I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 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