Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Retrieve Data from another webpage besides XML

Reply
Thread Tools

Retrieve Data from another webpage besides XML

 
 
Vanessa
Guest
Posts: n/a
 
      09-13-2005
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!!

 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      09-13-2005
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!!
>

 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      09-14-2005
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!!
> > >

 
Reply With Quote
 
Vanessa
Guest
Posts: n/a
 
      09-15-2005
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!!
> > > >

 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      09-15-2005
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"


 
Reply With Quote
 
Vanessa
Guest
Posts: n/a
 
      09-22-2005
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"
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can URI retrieve the URL of a webpage when its open? Arti Singh Ruby 2 08-12-2009 02:47 PM
Other XML Editors/Tools besides XMLSpy? carey1@sbcglobal.net XML 7 08-22-2008 03:24 PM
question: script to input data into a webpage and then retrieve the result? mxywp Python 1 10-22-2006 06:26 AM
redirecting from another page besides the login page WhiskyRomeo ASP .Net Security 1 01-18-2005 10:05 PM
Retrieve current webpage url. wonder Python 0 08-18-2004 07:10 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57