472,342 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 software developers and data experts.

ServerHTTPRequest

Hi people, I need some help with ServerHTTPRequest.

My question is: why can I load only the last rss? Somebody have any
idea?

Thanks a lot.
Example:
http://www.clas.com.br/loja/sedex.calculo.asp

Code:
Sub getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("news.xsl")

set source = Server.CreateObject("MSXML2.DomDocument")
source.async = false
source.setProperty "ServerHTTPRequest", true
source.load CStr( sourceFile )

'Se não for possível a conexão, mosta código de erro
Response.Write( "<br/> Código de Erro: " & source.parseerror )
Response.Write( "<br/> Código de Erro: " &
source.parseerror.reason )

set style = Server.CreateObject("Msxml2.DomDocument")
style.async = false
style.load styleFile

'source.transformNodeToObject style, Response
set source = nothing
set style = nothing
End Sub

Jun 27 '06 #1
4 6679

<ed**********@gmail.com> wrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...

Hi people, I need some help with ServerHTTPRequest.

My question is: why can I load only the last rss? Somebody have any
idea?

Thanks a lot.


The code below seems fine although I'd use the more specific
MSXML2.DOMDocument.3.0
Prog ID. I'm afraid I find your question a very cryptic. In the link below
the first item results in a empty html file, the second is a raw xml, the
third is transformed to html and the forth returns raw xml.

Can you explain more clearly what your problem is?

Example:
http://www.clas.com.br/loja/sedex.calculo.asp

Code:
Sub getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("news.xsl")

set source = Server.CreateObject("MSXML2.DomDocument")
source.async = false
source.setProperty "ServerHTTPRequest", true
source.load CStr( sourceFile )

'Se não for possível a conexão, mosta código de erro
Response.Write( "<br/> Código de Erro: " & source.parseerror )
Response.Write( "<br/> Código de Erro: " &
source.parseerror.reason )

set style = Server.CreateObject("Msxml2.DomDocument")
style.async = false
style.load styleFile

'source.transformNodeToObject style, Response
set source = nothing
set style = nothing
End Sub
<<
Jun 27 '06 #2
Of course.

In the example ( http://www.clas.com.br/loja/sedex.calculo.asp ) I try
to load 4 feeds.
All the feeds, if access by browser are ok. But feeds 1, 2 and 3
loading using the code generate a -2147012867 error.

Only last feed works loaded by code, that's I don't undestand.

thanks a lot
Anthony Jones wrote:
<ed**********@gmail.com> wrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...

Hi people, I need some help with ServerHTTPRequest.

My question is: why can I load only the last rss? Somebody have any
idea?

Thanks a lot.


The code below seems fine although I'd use the more specific
MSXML2.DOMDocument.3.0
Prog ID. I'm afraid I find your question a very cryptic. In the link below
the first item results in a empty html file, the second is a raw xml, the
third is transformed to html and the forth returns raw xml.

Can you explain more clearly what your problem is?

Example:
http://www.clas.com.br/loja/sedex.calculo.asp

Code:
Sub getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("news.xsl")

set source = Server.CreateObject("MSXML2.DomDocument")
source.async = false
source.setProperty "ServerHTTPRequest", true
source.load CStr( sourceFile )

'Se não for possível a conexão, mosta código de erro
Response.Write( "<br/> Código de Erro: " & source.parseerror )
Response.Write( "<br/> Código de Erro: " &
source.parseerror.reason )

set style = Server.CreateObject("Msxml2.DomDocument")
style.async = false
style.load styleFile

'source.transformNodeToObject style, Response
set source = nothing
set style = nothing
End Sub
<<


Jun 27 '06 #3

<ed**********@gmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...
Of course.

In the example ( http://www.clas.com.br/loja/sedex.calculo.asp ) I try
to load 4 feeds.
All the feeds, if access by browser are ok. But feeds 1, 2 and 3
loading using the code generate a -2147012867 error.

Only last feed works loaded by code, that's I don't undestand.

thanks a lot
This error is:-

ERROR_WINHTTP_CANNOT_CONNECT

do you have an outgoing firewall and a proxy server in place?

Anthony Jones wrote: <ed**********@gmail.com> wrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...

Hi people, I need some help with ServerHTTPRequest.

My question is: why can I load only the last rss? Somebody have any
idea?

Thanks a lot.

The code below seems fine although I'd use the more specific
MSXML2.DOMDocument.3.0
Prog ID. I'm afraid I find your question a very cryptic. In the link

below the first item results in a empty html file, the second is a raw xml, the
third is transformed to html and the forth returns raw xml.

Can you explain more clearly what your problem is?

Example:
http://www.clas.com.br/loja/sedex.calculo.asp

Code:
Sub getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("news.xsl")

set source = Server.CreateObject("MSXML2.DomDocument")
source.async = false
source.setProperty "ServerHTTPRequest", true
source.load CStr( sourceFile )

'Se não for possível a conexão, mosta código de erro
Response.Write( "<br/> Código de Erro: " & source.parseerror )
Response.Write( "<br/> Código de Erro: " &
source.parseerror.reason )

set style = Server.CreateObject("Msxml2.DomDocument")
style.async = false
style.load styleFile

'source.transformNodeToObject style, Response
set source = nothing
set style = nothing
End Sub
<<

Jun 27 '06 #4
Well, I don't have the server then I need ask to config for me.

The server people sad they create a rule in firewall to the file
"sedex.calculo.asp".
I really don't know other permissions that the script need.

thanks a lot
Anthony Jones wrote:
<ed**********@gmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...
Of course.

In the example ( http://www.clas.com.br/loja/sedex.calculo.asp ) I try
to load 4 feeds.
All the feeds, if access by browser are ok. But feeds 1, 2 and 3
loading using the code generate a -2147012867 error.

Only last feed works loaded by code, that's I don't undestand.

thanks a lot


This error is:-

ERROR_WINHTTP_CANNOT_CONNECT

do you have an outgoing firewall and a proxy server in place?

Anthony Jones wrote:
<ed**********@gmail.com> wrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...

Hi people, I need some help with ServerHTTPRequest.

My question is: why can I load only the last rss? Somebody have any
idea?

Thanks a lot.


The code below seems fine although I'd use the more specific
MSXML2.DOMDocument.3.0
Prog ID. I'm afraid I find your question a very cryptic. In the link

below
the first item results in a empty html file, the second is a raw xml, the
third is transformed to html and the forth returns raw xml.

Can you explain more clearly what your problem is?
>

Example:
http://www.clas.com.br/loja/sedex.calculo.asp

Code:
Sub getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("news.xsl")

set source = Server.CreateObject("MSXML2.DomDocument")
source.async = false
source.setProperty "ServerHTTPRequest", true
source.load CStr( sourceFile )

'Se não for possível a conexão, mosta código de erro
Response.Write( "<br/> Código de Erro: " & source.parseerror )
Response.Write( "<br/> Código de Erro: " &
source.parseerror.reason )

set style = Server.CreateObject("Msxml2.DomDocument")
style.async = false
style.load styleFile

'source.transformNodeToObject style, Response
set source = nothing
set style = nothing
End Sub
<<


Jun 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mohit | last post by:
I am struggling for long time to display a GIF file on an ASP page. I have tried to return a GIF file in few formats from a webservice....
0
by: Fabien SK | last post by:
Hi, I am using "MSSOAP" as COM object and I would like to put a property to an object, but I can not make it work. My code looks like that: ...
0
by: Chuck | last post by:
Hello. I am trying to pass three parameters using this code in an asp page to an xsl page. I keep getting the following error: Microsoft...
1
by: Justin Woodcock | last post by:
Hi, Is it possible to call an asp file that generates xslt using Objectname.load ? I have tried this script : <% Dim objXML, objXSL
1
by: bajopalabra | last post by:
hi this code bellow get data from a web service (tradicional asp) but result is not parsed into XML ... that is, JUST get "cat4" instead of...
0
by: jeffdegarmo | last post by:
I have a styleshee that displays XML data properly if I use <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> . I know this isn't the right...
1
by: Chuck | last post by:
Hello, I am having trouble loading the returned XML from a Webservice into my XSL. Any suggestions would be appreciated. ' Build custom HTTP...
1
by: Subrato | last post by:
Hi, I am very new to xml and I have this piece of code which I took off a website. The situation is that on of the website, user files up a form...
1
by: bwilcoxis | last post by:
I have an externally generated xml file that correctly escaping characters such as apostrophes and quotes and rendering them as &amp;#8217; and ...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.