473,856 Members | 2,569 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Read output from an external webpage/web service

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

Apr 26 '06 #1
5 2056

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("M SXML2.ServerXML HTTP")
xmlhttp.open "GET", strUrl , false
xmlhttp.send ""
myVar = xmlhttp.respons eText
set xmlhttp = nothing
%>

--
Mike Brind

Apr 26 '06 #2
ServerXMLHttp object from the MSXML 4.0 SDK.

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

"bobbyd" <ro************ @btinternet.com > wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.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

Apr 26 '06 #3
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:1 1: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

Apr 26 '06 #4
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:1 1: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

Apr 26 '06 #5
Yes, this Ajax precursor doesn't actually have anything to do with XML,
though it is part of the XML library.

"bobbyd" <ro************ @btinternet.com > wrote in message
news:11******** *************@j 33g2000cwa.goog legroups.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:1 1: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
Apr 27 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4413
by: Oleg Ogurok | last post by:
Hi all, Could someone please give me an example of calling an external executable from VB and getting the output from it as a string? Thanks, -Oleg.
2
3587
by: Juan Manuel Alegría B. | last post by:
Hi group I have been making a windows service to execute an external application. I use a timer control, I can execute the application but does't appear as a normal windows, just I see it in the windows task manager as a local service. I think it must appear as a normal process. Someone knows about it or has any idea? Juan Manuel Alegria B. Jalisco, México.
4
1846
by: primary0 | last post by:
Hi, I have a page containing an external javascript which loads an image onto the webpage. How would it be possible to use javascript to read the filname (and the dimensions) of the loaded image (something I can get by right-clicking the image with the mouse, but it is not given in the source of the page).
1
8048
by: teknowbabble | last post by:
I would like to know how to convert HTML code that users input into a TEXTAREA box on a HTML FORM into a separate WEBPAGE. I have something like the diagram below on my webpage. The user is prompted to input his/her HTML Code in the FORM TEXTAREA. By pushing the Make Webpage Button, a new window opens with the output of the HTML contents they inputted. This way people can see what their HTML looks like. HTML FORM TEXTAREA (Where user...
17
3472
by: chris.schwalm | last post by:
I would like to first state that I have searched through the archives and found a lot of related material, but am still new enough to javascript that I can't fit all the pieces together yet. So here is my situation. I would like to create a program that grabs the source of a displayed webpage, sends it off to another program, then receive the slightly modified source back from that other program, and then reposts the slightly modified...
1
11409
by: bi | last post by:
hi I am currently getting the following issue with webservices, anyone got any ideas? this only just started happening. a project with an output type of class library cannot be started directly in order to debug this project, go to the debugging tab under configuration setting in project properties, and set the start action to external Program or URL. Alternatively, you can add a non library project to this solution that uses a...
4
4445
by: eschneider | last post by:
I get the following error when trying to browse the .asmx. I get the same thing when trying to add a reference. using .NET 2.0 There is no error message. Any ideas? Thanks,
2
9172
by: saritha2008 | last post by:
Hi, As part of transforming one form of xml to another form, i need to do the below mentioned transformation: My Input XML: <rss> <channel> <item> <assignee username="srinivas.rachakonda">Srinivas Rachakonda</assignee>
3
1629
by: mab43 | last post by:
I've got a Python CGI script that pulls data from a GPS service; I'd like this information to be updated on the webpage about once every 10s (the max allowed by the GPS service's TOS). But there could be, say, 100 users viewing the webpage at once, all calling the script. I think the users' scripts need to grab data from a buffer page that itself only upates once every ten seconds. How can I make this buffer page auto-update if there's no one...
0
9767
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
11074
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...
0
10707
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...
1
10805
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
7104
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
5769
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
4592
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
4188
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3208
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.