Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Read output from an external webpage/web service

Reply
Thread Tools

Read output from an external webpage/web service

 
 
bobbyd
Guest
Posts: n/a
 
      04-26-2006
Hi All,

Does anyone know of a way to read an output from an external
webpage/service?

For example;
The external source is on http://serverA:6010/sendoutput
This page displays one line of outputted text, I want to be able to
read this in an asp page into a variable.

Any ideas?
TIA
Rob

 
Reply With Quote
 
 
 
 
Mike Brind
Guest
Posts: n/a
 
      04-26-2006

bobbyd wrote:
> Hi All,
>
> Does anyone know of a way to read an output from an external
> webpage/service?
>
> For example;
> The external source is on http://serverA:6010/sendoutput
> This page displays one line of outputted text, I want to be able to
> read this in an asp page into a variable.
>
> Any ideas?
> TIA
> Rob


<%
Dim strUrl, myVar, xmlhttp
strUrl = "http://serverA:6010/sendoutput"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", strUrl , false
xmlhttp.send ""
myVar = xmlhttp.responseText
set xmlhttp = nothing
%>

--
Mike Brind

 
Reply With Quote
 
 
 
 
Richard K Bethell
Guest
Posts: n/a
 
      04-26-2006
ServerXMLHttp object from the MSXML 4.0 SDK.

http://support.microsoft.com/default...;en-us;Q290761

"bobbyd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Hi All,
>
> Does anyone know of a way to read an output from an external
> webpage/service?
>
> For example;
> The external source is on http://serverA:6010/sendoutput
> This page displays one line of outputted text, I want to be able to
> read this in an asp page into a variable.
>
> Any ideas?
> TIA
> Rob
>



 
Reply With Quote
 
bobbyd
Guest
Posts: n/a
 
      04-26-2006
What if the output is in a non XML format? Can that still be used?
Example output is ;
"2¬5`J Smith`2`6``00:11:25`0`7`3`10`0`0`¬7`T
Jones`2`16``00:03:12`3`20`0`0`0`2`¬true`0"

TIA
Rob

 
Reply With Quote
 
bobbyd
Guest
Posts: n/a
 
      04-26-2006
What if the output is in a non XML format? Can that still be used?
Example output is ;
"2¬5`J Smith`2`6``00:11:25`0`7`3`10`0`0`¬7`T
Jones`2`16``00:03:12`3`20`0`0`0`2`¬true`0"

TIA
Rob

 
Reply With Quote
 
Richard K Bethell
Guest
Posts: n/a
 
      04-27-2006
Yes, this Ajax precursor doesn't actually have anything to do with XML,
though it is part of the XML library.

"bobbyd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
What if the output is in a non XML format? Can that still be used?
Example output is ;
"2¬5`J Smith`2`6``00:11:25`0`7`3`10`0`0`¬7`T
Jones`2`16``00:03:12`3`20`0`0`0`2`¬true`0"

TIA
Rob


 
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
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Create references to external scipt files from within an external script file Mellow Crow Javascript 6 11-04-2005 01:16 PM
External process output missing Guifre Java 1 05-24-2005 12:12 PM
unresolved external symbol/using an external dll Scott Allen C++ 8 05-02-2004 06:11 PM
Web Service that calls an external Web Service Isaias Formacio Serna ASP .Net Security 5 02-02-2004 07:38 AM



Advertisments