473,386 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

javascript implementation of XMLHTTP and SOAP objects?

I don't know enough about the technology yet to know whether this
is a ridiculous question-- but is there no cross-browser
javascript implementation of XMLHTTP and SOAP for use in calling
web services? It looks as though MSFT expects the client to be
running Windows and ActiveX and have certain DLLs installed; and
Mozilla seems to have its own implementation of SOAP. Is it
possible to implement these protocols in pure client-side
javascript?
Thanks!
Timo
Jul 23 '05 #1
6 1932
On Tue, 25 May 2004 20:44:34 -0400, Timo <Ti**@anonymous.biz> wrote:
I don't know enough about the technology yet to know whether this
is a ridiculous question-- but is there no cross-browser
javascript implementation of XMLHTTP and SOAP for use in calling
web services? It looks as though MSFT expects the client to be
running Windows and ActiveX and have certain DLLs installed; and
Mozilla seems to have its own implementation of SOAP. Is it
possible to implement these protocols in pure client-side
javascript?


Nope, you need something to perform HTTP - SOAP is a bad idea though
anyway.

HTTP objects are provided by safari, IE and mozilla and have identical
interfaces, but different constructors.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #2


Jim Ley wrote:

HTTP objects are provided by safari, IE and mozilla and have identical
interfaces, but different constructors.


I didn't know about that Safari feature so far and have now Mac here to
test. Does Safari simply implement the same constructor as Mozilla, i.e.
XMLHttpRequest, or what is needed for Safari?

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #3
On Wed, 26 May 2004 16:41:08 +0200, Martin Honnen <ma*******@yahoo.de>
wrote:


Jim Ley wrote:

HTTP objects are provided by safari, IE and mozilla and have identical
interfaces, but different constructors.


I didn't know about that Safari feature so far and have now Mac here to
test. Does Safari simply implement the same constructor as Mozilla, i.e.
XMLHttpRequest, or what is needed for Safari?


I believe so, I also haven't yet managed to see it in action or test,
the code in GMail which reportedly works in Safari just has Mozilla
and IE paths.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #4


Jim Ley wrote:
On Wed, 26 May 2004 16:41:08 +0200, Martin Honnen <ma*******@yahoo.de>
wrote:


Jim Ley wrote:
HTTP objects are provided by safari, IE and mozilla and have identical
interfaces, but different constructors.


I didn't know about that Safari feature so far and have now Mac here to
test. Does Safari simply implement the same constructor as Mozilla, i.e.
XMLHttpRequest, or what is needed for Safari?

I believe so, I also haven't yet managed to see it in action or test,
the code in GMail which reportedly works in Safari just has Mozilla
and IE paths.


Yes, I have just searched around on Apple's site and the article
http://developer.apple.com/internet/...mlhttpreq.html
clearly says and shows that since Safari 1.2 XMLHttpRequest is
implemented in Safari following the Mozilla implementation.

If only Opera had already done the same but they are probably doing it:

http://groups.google.com/groups?hl=e...news.opera.com

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #5
> >I didn't know about that Safari feature so far and have now Mac here to
test. Does Safari simply implement the same constructor as Mozilla, i.e.
XMLHttpRequest, or what is needed for Safari?
I believe so, I also haven't yet managed to see it in action or test,
the code in GMail which reportedly works in Safari just has Mozilla
and IE paths.


XMLhttp Request works fine with Safari (Mac Mozilla too) using the
constructor method you detailed in
http://jibbering.com/2002/4/httprequest.html

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #6

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:40********@olaf.komtel.net...


Jim Ley wrote:
On Wed, 26 May 2004 16:41:08 +0200, Martin Honnen <ma*******@yahoo.de>
wrote:


Jim Ley wrote:

HTTP objects are provided by safari, IE and mozilla and have identical
interfaces, but different constructors.

I didn't know about that Safari feature so far and have now Mac here to
test. Does Safari simply implement the same constructor as Mozilla, i.e.
XMLHttpRequest, or what is needed for Safari?

I believe so, I also haven't yet managed to see it in action or test,
the code in GMail which reportedly works in Safari just has Mozilla
and IE paths.


Yes, I have just searched around on Apple's site and the article
http://developer.apple.com/internet/...mlhttpreq.html
clearly says and shows that since Safari 1.2 XMLHttpRequest is
implemented in Safari following the Mozilla implementation.

If only Opera had already done the same but they are probably doing it:

http://groups.google.com/groups?hl=e...news.opera.com

WOW, great news! I use it extensively in my PHP applications and I always
have to sniff it out and serve up an alternate for Opera and the other non
supporting browsers.
Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #7

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

Similar topics

7
by: Eric Osman | last post by:
If my question sounds ill-formed, please cut me some slack as I'm just getting started with this part of the code. We're trying to do an axis soap interface, that is, talk to a site that already...
2
by: Kapil Shah | last post by:
Hello Everybody, I am trying to develop code to use the correct version of XMLHTTP and use it to send SOAP envelope to WebService . The code works fine for the first time but then after that I get...
0
by: Josh Harris | last post by:
You can copy and paste the following into a .aspx page (change names for your purpose) and it will call a webservice on every 1 minute. I used this piece of code for the purpose of refreshing a...
3
by: BjörnHolmberg | last post by:
I'm trying to consume a WS from Excel (Office 98), seems that I can't send arguments into the WS. In order to pinpoint the problem I've written the following application i C# and VB6. It reproduces...
4
by: Saber | last post by:
When users come to website, I want to identify them (browser, referrer, ....). I am doing it in global.asax, well, when they type www . sitename . com the global.asax identify them and redirect...
1
by: DSmith1974 | last post by:
Hi All, After creating an end-point with batches enabled using SQL Server 2005, I can easily query a database and have xml returned from within javascript using something like Pablo's code...
3
by: magister pips | last post by:
Hello, I have encountered some strange behaviour when using the XMLHTTP Request object in Javascript to return xml from a C# Webservice Method. I create a SOAP envelope and send it off to the...
1
by: magister pips | last post by:
Hello, I have encountered some strange behaviour when using the XMLHTTP Request object in Javascript to return xml from a C# Webservice Method. I create a SOAP envelope and send it off to the...
0
by: magister pips | last post by:
Hello, I have encountered some strange behaviour when using the XMLHTTP Request object in Javascript to return xml from a C# Webservice Method. I create a SOAP envelope and send it off to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.