🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: be.comp.programming
3 messages
3 total messages Started by Bart Vanwijnsberghe Sat, 16 Nov 2002 15:15
XML vraagje
#6627
Author: Bart Vanwijnsberghe
Date: Sat, 16 Nov 2002 15:15
31 lines
2003 bytes
Wat is er fout in deze code ?
Ik krijg altijd "url niet geladen"

 dim xmldoc
 dim Prod_ID
 dim Cust_ID
 dim xmlpath
 dim controle

 set xmldoc = Server.CreateObject("Msxml2.DOMDocument.4.0")
 Prod_ID = xxxxxxx
 Cust_ID = yyyyyy
 xmlpath = "http://intouch.computer2000.com/xml/xmlonl.asp?CustID=" &
Cust_ID & "&ProdID=" & Prod_ID

 xmldoc.async = false
 controle = xmldoc.load(xmlpath)

 If controle = True Then
  Response.write "url geladen"
 Else
  Response.write "url niet geladen"
 End If

mvg
Bart
--
Bart Vanwijnsberghe
http://www.lightning.be
MSN: b_vanwijnsberghe@hotmail.com
ICQ: 49454469
Re: XML vraagje
#6813
Author: Johan Pollet
Date: Mon, 18 Nov 2002 06:55
39 lines
1933 bytes
Bart Vanwijnsberghe wrote:
> 
> Wat is er fout in deze code ?
> Ik krijg altijd "url niet geladen"
> 
>  dim xmldoc
>  dim Prod_ID
>  dim Cust_ID
>  dim xmlpath
>  dim controle
> 
>  set xmldoc = Server.CreateObject("Msxml2.DOMDocument.4.0")
>  Prod_ID = xxxxxxx
>  Cust_ID = yyyyyy
>  xmlpath = "http://intouch.computer2000.com/xml/xmlonl.asp?CustID=" &
> Cust_ID & "&ProdID=" & Prod_ID
> 
>  xmldoc.async = false
>  controle = xmldoc.load(xmlpath)
> 
>  If controle = True Then
>   Response.write "url geladen"
>  Else
>   Response.write "url niet geladen"
>  End If
> 
> mvg
> Bart
> --
> Bart Vanwijnsberghe
> http://www.lightning.be
> MSN: b_vanwijnsberghe@hotmail.com
> ICQ: 49454469


Zou het niet eerder een fout aan de xml kant zijn??

Rgds
Johan
Re: XML vraagje
#6825
Author: Bart Vanwijnsberghe
Date: Mon, 18 Nov 2002 20:35
60 lines
2701 bytes
"Johan Pollet"...
> Bart Vanwijnsberghe wrote:
> >
> > Wat is er fout in deze code ?
> > Ik krijg altijd "url niet geladen"
> >
> >  dim xmldoc
> >  dim Prod_ID
> >  dim Cust_ID
> >  dim xmlpath
> >  dim controle
> >
> >  set xmldoc = Server.CreateObject("Msxml2.DOMDocument.4.0")
> >  Prod_ID = xxxxxxx
> >  Cust_ID = yyyyyy
> >  xmlpath = "http://intouch.computer2000.com/xml/xmlonl.asp?CustID=" &
> > Cust_ID & "&ProdID=" & Prod_ID
> >
> >  xmldoc.async = false
> >  controle = xmldoc.load(xmlpath)
> >
> >  If controle = True Then
> >   Response.write "url geladen"
> >  Else
> >   Response.write "url niet geladen"
> >  End If
>
> Zou het niet eerder een fout aan de xml kant zijn??
>
> Rgds
> Johan

Johan,

Ik denk het niet, want als ik mijn xmlpath gewoon open in mijn browser krijg
ik wel antwoord, namelijk:

<?xml version="1.0" ?>
- <RealData>
    <MSG ID="10">010 : Online Check Temporarily Disabled</MSG>
    - <ITEM>
      <ID>752523</ID>
       <DESC>HP DeskJet 3420/NL FR EN 10ppm black 3ppm color 2400x1200dpi
USB 2.0 A4</DESC>
      <PRICE CURRENCY="EUR" />
      <QTY>2569</QTY>
      <DELDATE />
      </ITEM>
    </RealData>

In nl.comp.programmeren heb ik reeds een andere mogelijkheid gekregen om die
xml op te halen en dan lukt het wel.

mvg
Bart
--
Bart Vanwijnsberghe
http://www.lightning.be
MSN: b_vanwijnsberghe@hotmail.com
ICQ: 49454469
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads