473,700 Members | 3,006 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 6733

<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
3798
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
1365
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
1756
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
3395
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
9826
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
1351
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
1603
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
2675
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
2648
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
8639
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
9059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6556
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5897
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
4396
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...
1
3082
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
2379
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2021
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.