Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xmldom.load(request) in VB ???

Status
Not open for further replies.

prock

Programmer
Jul 24, 2001
1
US
Hello,

I cannot get the following statement to work in VB:

xmldom.load(request)

It works fine in ASP pages, but in VB request is not understood. I've tried to declare the Request,Response,Server, etc in the on_start page (which worked), but does not work if I try:

xmldom.load(m_objRequest)

What am I doing wrong ? There had to be a way of getting an XML string being sent via the HttpRequest.Send method.

Basically, somewhere on the net someone will send an XMLstring like:

myxmlstring = &quot;<PARENT><PROD_NAME>Oranges</PROD_NAME></PARENT>&quot;
httprequest.post myxmlstring, someurl
httprequest.setcontenttype = &quot;application/...&quot;
httprequest.send

Then I want an ASP page to call a COM Object written in VB.

Set myvbcom = CreateObject(&quot;MYObject.MyClass&quot;)
myvbcom.Get_XML_Text()

The Get_XML_Text() function should simply grab the data from the request so I can parse through it.

What do I need to do to make this work in VB ? I'm having such a hard time with this. Thanks for anyone's help.

Pierce
 
The load function expects a file to be loaded, try the function loadxml.

Jordi Reineman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top