Hi
Any javascript will run in the browser and not on the server. What the
javascript calls using XMLHttpRequest will exist on a server somewhere.
XMLHttpRequest is the javascript DOM API that is the keystone of AJAX.
You probably use that now to contact a webservice written in asp.net that
then uses uniobjects to connect to u2. The same XMLHttpRequest call could
also use my example php code to do a similar thing, but the php is fairly
unsophisticated compared to uniobjects and will not work well if you have
heavy load, no licences left etc + does not manage any pooling or device
licencing.
If you want to connect to a web page/service direct from within your asp.net
- well here is a very simple example vb.net function to do just that - tho
there are of course many ways to do this....
Private Function getWeb(ByVal url As String) As String
Dim URI As Uri = New Uri(url)
Dim webPage As String = String.Empty
Dim WebRequest As HttpWebRequest = HttpWebRequest.Create(URI)
WebRequest.Timeout = 8000
Try
Dim WebResponse As WebResponse = WebRequest.GetResponse()
Dim Stream As Stream = WebResponse.GetResponseStream()
Dim StreamReader As StreamReader = New StreamReader(Stream)
webPage = StreamReader.ReadToEnd
Catch ex As WebException
Err = ex.ToString
End Try
Return webPage
End Function
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 18 November 2008 14:46
To: [email protected]
Subject: RE: [U2] Setting return code when a Universe process terminates
>> Using whatever programming language you run to power your iis web site
>> asp/asp.net/php etc. Or your iis web server dishes up static html which
has
>> a script it in that contacts the u2 server via ajax.
.
I appreciate your patience. I'm relatively new to AJAX. I am interested
in finding a way to get to the U2 data more directly than we do currently,
which is using a Java Bridge and Uniobjects for Java.
I've done XMLHttpRequests from clients using JavaScript. In this case,
the IIS server is doing an XMLHttpRequest to the U2 server, right? It
takes the request response from the U2 server and incorporates it into a
page that is returned to the client. Is this server side JavaScript, or
is there a way to do an XMLHttpRequest from ASP/PHP?
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.3/1786 - Release Date: 17/11/2008
17:24
No virus found in this outgoing message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.3/1786 - Release Date: 17/11/2008
17:24
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/