473,883 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ServerHTTPReque st

Hi people, I need some help with ServerHTTPReque st.

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(sourceFi le)
dim styleFile
dim source, style
styleFile = Server.MapPath( "news.xsl")

set source = Server.CreateOb ject("MSXML2.Do mDocument")
source.async = false
source.setPrope rty "ServerHTTPRequ est", 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.parseerr or )
Response.Write( "<br/> Código de Erro: " &
source.parseerr or.reason )

set style = Server.CreateOb ject("Msxml2.Do mDocument")
style.async = false
style.load styleFile

'source.transfo rmNodeToObject style, Response
set source = nothing
set style = nothing
End Sub

Jun 27 '06 #1
4 6746

<ed**********@g mail.com> wrote in message
news:11******** *************@7 5g2000cwc.googl egroups.com...

Hi people, I need some help with ServerHTTPReque st.

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.DOMDocum ent.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(sourceFi le)
dim styleFile
dim source, style
styleFile = Server.MapPath( "news.xsl")

set source = Server.CreateOb ject("MSXML2.Do mDocument")
source.async = false
source.setPrope rty "ServerHTTPRequ est", 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.parseerr or )
Response.Write( "<br/> Código de Erro: " &
source.parseerr or.reason )

set style = Server.CreateOb ject("Msxml2.Do mDocument")
style.async = false
style.load styleFile

'source.transfo rmNodeToObject 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**********@g mail.com> wrote in message
news:11******** *************@7 5g2000cwc.googl egroups.com...

Hi people, I need some help with ServerHTTPReque st.

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.DOMDocum ent.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(sourceFi le)
dim styleFile
dim source, style
styleFile = Server.MapPath( "news.xsl")

set source = Server.CreateOb ject("MSXML2.Do mDocument")
source.async = false
source.setPrope rty "ServerHTTPRequ est", 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.parseerr or )
Response.Write( "<br/> Código de Erro: " &
source.parseerr or.reason )

set style = Server.CreateOb ject("Msxml2.Do mDocument")
style.async = false
style.load styleFile

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


Jun 27 '06 #3

<ed**********@g mail.com> wrote in message
news:11******** **************@ y41g2000cwy.goo glegroups.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_C ANNOT_CONNECT

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

Anthony Jones wrote: <ed**********@g mail.com> wrote in message
news:11******** *************@7 5g2000cwc.googl egroups.com...

Hi people, I need some help with ServerHTTPReque st.

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.DOMDocum ent.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(sourceFi le)
dim styleFile
dim source, style
styleFile = Server.MapPath( "news.xsl")

set source = Server.CreateOb ject("MSXML2.Do mDocument")
source.async = false
source.setPrope rty "ServerHTTPRequ est", 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.parseerr or )
Response.Write( "<br/> Código de Erro: " &
source.parseerr or.reason )

set style = Server.CreateOb ject("Msxml2.Do mDocument")
style.async = false
style.load styleFile

'source.transfo rmNodeToObject 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**********@g mail.com> wrote in message
news:11******** **************@ y41g2000cwy.goo glegroups.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_C ANNOT_CONNECT

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

Anthony Jones wrote:
<ed**********@g mail.com> wrote in message
news:11******** *************@7 5g2000cwc.googl egroups.com...

Hi people, I need some help with ServerHTTPReque st.

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.DOMDocum ent.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(sourceFi le)
dim styleFile
dim source, style
styleFile = Server.MapPath( "news.xsl")

set source = Server.CreateOb ject("MSXML2.Do mDocument")
source.async = false
source.setPrope rty "ServerHTTPRequ est", 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.parseerr or )
Response.Write( "<br/> Código de Erro: " &
source.parseerr or.reason )

set style = Server.CreateOb ject("Msxml2.Do mDocument")
style.async = false
style.load styleFile

'source.transfo rmNodeToObject 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
3804
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. Webservice returns the images as MemoryStream.GetBuffer(). Its an array of unsigned bytes.I also tried to return it in base64 encoded format. I can call this webservice in either of 2 ways 1) Directly from ASP -- It returns me this ..
0
1370
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: obj = win32com.client.Dispatch("MSSOAP.SoapClient30") obj.MSSoapInit("http://server/wsdl"); obj.ClientProperty("ServerHTTPRequest") = 1 But it doesn't work. "ClientProperty("ServerHTTPRequest")" should return
0
1762
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 VBScript runtime error '800a01a8' Object required: '' /account.asp, line 114
1
3404
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
9834
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 "<animal><name>cat</name><legs>4</legs></animal> set osoap= Server.CreateObject("MSSOAP.SoapClient30") osoap.ClientProperty("ServerHTTPRequest") = true osoap.mssoapinit("http://x.x.x.x:8080/services/myservice?wsdl")
0
1359
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 one to use. However, when I use <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> the page does not display any of the XML data. It's as if it hasn't even pulled in the data. ** XSL Code ** <?xml version="1.0"?> <xsl:stylesheet...
1
1609
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 header xmlServerHttp.open "POST", "https://.../Site.asmx", False ' False = Do not respond immediately xmlServerHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8" xmlServerHttp.setRequestHeader "Content-Length", Len(SoapBodyStr)
1
2683
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 and it is submitted. On submission, the page should do a xml post to my site. On receiving the xml on my end, I take that data and insert it into sql server table. I dont know whats missing . Here is the piece of code I use for my testing. 'Sending
1
2655
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 &amp;#39; the xml file has the following definition: <?xml version="1.0" encoding="iso-8859-1"?> I have tried changing that to: <?xml version="1.0" encoding="utf-8"?> to no avail
0
9799
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11166
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10868
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9588
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7137
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5808
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6009
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4231
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.