By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,526 Members | 1,895 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,526 IT Pros & Developers. It's quick & easy.

Retrieve Data from another webpage besides XML

P: n/a
I have a question, is that any other way to retrieve data from another
webpage besides using XML object? Because I am using XML object now but give
me so much problems.

If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
msxml3.dll error '80072ee2'
The operation timed out

If I used Microsoft.XMLHTTP object, it will hang IE!

In both cases, I have to wait for half an hour or more in order for the XML
object to be working again.

Actually both webpages that's communicating are hosted at the same machine.
The main site (ex. aa.domain.com) points to particular folder under it, while
another one (ex. bb.domain.com) points to another folder which is two levels
up to the first one.

Please help!!

Sep 13 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
If both sites/pages are in your control why not rethink the way you are
approaching? Perhaps have both use a shared INCLUDE file, so they may share
the content?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vanessa" wrote:
I have a question, is that any other way to retrieve data from another
webpage besides using XML object? Because I am using XML object now but give
me so much problems.

If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
msxml3.dll error '80072ee2'
The operation timed out

If I used Microsoft.XMLHTTP object, it will hang IE!

In both cases, I have to wait for half an hour or more in order for the XML
object to be working again.

Actually both webpages that's communicating are hosted at the same machine.
The main site (ex. aa.domain.com) points to particular folder under it, while
another one (ex. bb.domain.com) points to another folder which is two levels
up to the first one.

Please help!!

Sep 13 '05 #2

P: n/a
yes you can pass a QS in the URL, but you can't dynamically build it, since
it's processed BEFORE the asp code... if thats fine then this should work
fine.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vanessa" wrote:
Curt,

Thanks for the quick response! Can we pass querystring in INCLUDE?
Server.Execute can do it but can't send querystring.

The reason we have two folders for our websites becuase each one is
connecting to a different database. And here is supposed to do:

at test.asp at aa.domain.com

.....
do something
.....
Response.Buffer = True
PostURL = "http://bb.domain.com/xml/whatever.asp?ID=123&state=2&update=N"
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", PostURL, False,"",""
xml.Send
dataNeeded = xml.responseText
Set xml = Nothing
....
process something based on values of dataNeeded from bb.domain.com
....
So do you think INCLUDE will work instead of XML object in this flow?

Thanks alot!!!!
"Curt_C [MVP]" wrote:
If both sites/pages are in your control why not rethink the way you are
approaching? Perhaps have both use a shared INCLUDE file, so they may share
the content?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vanessa" wrote:
I have a question, is that any other way to retrieve data from another
webpage besides using XML object? Because I am using XML object now but give
me so much problems.

If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
msxml3.dll error '80072ee2'
The operation timed out

If I used Microsoft.XMLHTTP object, it will hang IE!

In both cases, I have to wait for half an hour or more in order for the XML
object to be working again.

Actually both webpages that's communicating are hosted at the same machine.
The main site (ex. aa.domain.com) points to particular folder under it, while
another one (ex. bb.domain.com) points to another folder which is two levels
up to the first one.

Please help!!

Sep 14 '05 #3

P: n/a
Thanks Curt!

But I need to pass the querystring dynamically into the URL (in a loop
actually), so I guess INCLUDE can't be used. :(

Any more help from anyone? please help me out on this....

will be liked this:

at test.asp at aa.domain.com

......
do while <not end of loop>
do something to get value or to define value of ID and CurrentState for
example
.....
Response.Buffer = True
PostURL = "http://bb.domain.com/xml/whatever.asp?ID=" &ID&
"&CurrentState=" &CurrentState
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", PostURL, False,"",""
xml.Send
dataNeeded = xml.responseText
Set xml = Nothing
....
process something based on values of dataNeeded from bb.domain.com
....
loop

"Curt_C [MVP]" wrote:
yes you can pass a QS in the URL, but you can't dynamically build it, since
it's processed BEFORE the asp code... if thats fine then this should work
fine.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vanessa" wrote:
Curt,

Thanks for the quick response! Can we pass querystring in INCLUDE?
Server.Execute can do it but can't send querystring.

The reason we have two folders for our websites becuase each one is
connecting to a different database. And here is supposed to do:

at test.asp at aa.domain.com

.....
do something
.....
Response.Buffer = True
PostURL = "http://bb.domain.com/xml/whatever.asp?ID=123&state=2&update=N"
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", PostURL, False,"",""
xml.Send
dataNeeded = xml.responseText
Set xml = Nothing
....
process something based on values of dataNeeded from bb.domain.com
....
So do you think INCLUDE will work instead of XML object in this flow?

Thanks alot!!!!
"Curt_C [MVP]" wrote:
If both sites/pages are in your control why not rethink the way you are
approaching? Perhaps have both use a shared INCLUDE file, so they may share
the content?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vanessa" wrote:

> I have a question, is that any other way to retrieve data from another
> webpage besides using XML object? Because I am using XML object now but give
> me so much problems.
>
> If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
> msxml3.dll error '80072ee2'
> The operation timed out
>
> If I used Microsoft.XMLHTTP object, it will hang IE!
>
> In both cases, I have to wait for half an hour or more in order for the XML
> object to be working again.
>
> Actually both webpages that's communicating are hosted at the same machine.
> The main site (ex. aa.domain.com) points to particular folder under it, while
> another one (ex. bb.domain.com) points to another folder which is two levels
> up to the first one.
>
> Please help!!
>

Sep 15 '05 #4

P: n/a
I concur with Curt on this.

It sounds like you have some code in that whatever.asp page that returns
some values needed by the calling page, right? So encapsulate that code in a
function, place the function in an INCLUDE file, and include the file in
whatever page needs to use that function.

Another possibility is to create a Web Service. You should Google that so
you can see if you are able to utilize that functionality. It's not too hard
to do, but there is a learning curve involved.

Bob Barrows

Vanessa wrote:
Thanks Curt!

But I need to pass the querystring dynamically into the URL (in a loop
actually), so I guess INCLUDE can't be used. :(

Any more help from anyone? please help me out on this....

will be liked this:

at test.asp at aa.domain.com

.....
do while <not end of loop>
do something to get value or to define value of ID and
CurrentState for
example
.....
Response.Buffer = True
PostURL = "http://bb.domain.com/xml/whatever.asp?ID=" &ID&
"&CurrentState=" &CurrentState
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", PostURL, False,"",""
xml.Send
dataNeeded = xml.responseText
Set xml = Nothing
....
process something based on values of dataNeeded from bb.domain.com
....
loop

"Curt_C [MVP]" wrote:
yes you can pass a QS in the URL, but you can't dynamically build
it, since
it's processed BEFORE the asp code... if thats fine then this should
work
fine.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vanessa" wrote:
Curt,

Thanks for the quick response! Can we pass querystring in INCLUDE?
Server.Execute can do it but can't send querystring.

The reason we have two folders for our websites becuase each one is
connecting to a different database. And here is supposed to do:

at test.asp at aa.domain.com

.....
do something
.....
Response.Buffer = True
PostURL =
"http://bb.domain.com/xml/whatever.asp?ID=123&state=2&update=N"
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", PostURL, False,"",""
xml.Send
dataNeeded = xml.responseText
Set xml = Nothing
....
process something based on values of dataNeeded from bb.domain.com
....
So do you think INCLUDE will work instead of XML object in this
flow?

Thanks alot!!!!
"Curt_C [MVP]" wrote:

If both sites/pages are in your control why not rethink the way
you are approaching? Perhaps have both use a shared INCLUDE file,
so they may share the content?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vanessa" wrote:

> I have a question, is that any other way to retrieve data from
> another webpage besides using XML object? Because I am using XML
> object now but give me so much problems.
>
> If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
> msxml3.dll error '80072ee2'
> The operation timed out
>
> If I used Microsoft.XMLHTTP object, it will hang IE!
>
> In both cases, I have to wait for half an hour or more in order
> for the XML object to be working again.
>
> Actually both webpages that's communicating are hosted at the
> same machine. The main site (ex. aa.domain.com) points to
> particular folder under it, while another one (ex. bb.domain.com)
> points to another folder which is two levels up to the first one.
>
> Please help!!


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 15 '05 #5

P: n/a
Thank You Bob and Curt, I have tried this today and it works!
This really free me from the hassle and the pain of using XMLHTTP. Thanks!

"Bob Barrows [MVP]" wrote:
I concur with Curt on this.

It sounds like you have some code in that whatever.asp page that returns
some values needed by the calling page, right? So encapsulate that code in a
function, place the function in an INCLUDE file, and include the file in
whatever page needs to use that function.

Another possibility is to create a Web Service. You should Google that so
you can see if you are able to utilize that functionality. It's not too hard
to do, but there is a learning curve involved.

Bob Barrows

Vanessa wrote:
Thanks Curt!

But I need to pass the querystring dynamically into the URL (in a loop
actually), so I guess INCLUDE can't be used. :(

Any more help from anyone? please help me out on this....

will be liked this:

at test.asp at aa.domain.com

.....
do while <not end of loop>
do something to get value or to define value of ID and
CurrentState for
example
.....
Response.Buffer = True
PostURL = "http://bb.domain.com/xml/whatever.asp?ID=" &ID&
"&CurrentState=" &CurrentState
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", PostURL, False,"",""
xml.Send
dataNeeded = xml.responseText
Set xml = Nothing
....
process something based on values of dataNeeded from bb.domain.com
....
loop

"Curt_C [MVP]" wrote:
yes you can pass a QS in the URL, but you can't dynamically build
it, since
it's processed BEFORE the asp code... if thats fine then this should
work
fine.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vanessa" wrote:

Curt,

Thanks for the quick response! Can we pass querystring in INCLUDE?
Server.Execute can do it but can't send querystring.

The reason we have two folders for our websites becuase each one is
connecting to a different database. And here is supposed to do:

at test.asp at aa.domain.com

.....
do something
.....
Response.Buffer = True
PostURL =
"http://bb.domain.com/xml/whatever.asp?ID=123&state=2&update=N"
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", PostURL, False,"",""
xml.Send
dataNeeded = xml.responseText
Set xml = Nothing
....
process something based on values of dataNeeded from bb.domain.com
....
So do you think INCLUDE will work instead of XML object in this
flow?

Thanks alot!!!!
"Curt_C [MVP]" wrote:

> If both sites/pages are in your control why not rethink the way
> you are approaching? Perhaps have both use a shared INCLUDE file,
> so they may share the content?
>
> --
> Curt Christianson
> site: http://www.darkfalz.com
> blog: http://blog.darkfalz.com
>
>
>
> "Vanessa" wrote:
>
>> I have a question, is that any other way to retrieve data from
>> another webpage besides using XML object? Because I am using XML
>> object now but give me so much problems.
>>
>> If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
>> msxml3.dll error '80072ee2'
>> The operation timed out
>>
>> If I used Microsoft.XMLHTTP object, it will hang IE!
>>
>> In both cases, I have to wait for half an hour or more in order
>> for the XML object to be working again.
>>
>> Actually both webpages that's communicating are hosted at the
>> same machine. The main site (ex. aa.domain.com) points to
>> particular folder under it, while another one (ex. bb.domain.com)
>> points to another folder which is two levels up to the first one.
>>
>> Please help!!


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Sep 22 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.