Hello asp World,
Does someone know how to call a webservice in javascript ?
I just want an idea or a big way ...
Thanks for all, 3 1235
Hi,
PeReGrin wrote: Hello asp World, Does someone know how to call a webservice in javascript ? I just want an idea or a big way ... Thanks for all,
You use the XmlHttpObject to create HTTP requests to a server, which
answers with a Response. The XmlHttpObject supports either synchronous
and asynchronous calls (with a callback method). This is AJAX.
If additionally the request and the response contain SOAP messages (SOAP
being a XML dialect), then this is a web service client, which can be
used together with a ASP.NET Web method (server).
Here are a few links to get you started: http://www.oreillynet.com/pub/a/java...pi.html?page=1 http://www.xml.com/pub/a/2005/02/09/...p-request.html http://books.mozdev.org/html/mozilla-chp-12-sect-9.html
These links treat only of Mozilla, but the XmlHttpObject in IE is almost
the same as in Mozilla. Only the way to create the object itself is
different, Google for it, or check MSDN, I lost the link.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
it depends on what you mean by webservice. if you mean a soap request, then
its easy with firefox and safari, as they support making soap calls directly
(have a builtin method). if you are talking IE, you can try the IE soap
behavior.
you can use the xmlhhtprequest object to just send / fetch strings, in which
case its easy.
-- bruce (sqlwork.com)
"PeReGrin" <r.duprat@[NoNoSpam]peregrinsolutions.com> wrote in message
news:44***********************@news.wanadoo.fr... Hello asp World, Does someone know how to call a webservice in javascript ? I just want an idea or a big way ... Thanks for all,
Hi,
bruce barker (sqlwork.com) wrote: it depends on what you mean by webservice. if you mean a soap request, then its easy with firefox and safari, as they support making soap calls directly (have a builtin method). if you are talking IE, you can try the IE soap behavior.
The IE Soap behaviour (webservice.htc IIRC) is badly bugged. It creates
enormous memory leaks. We found this out last year when we were using it
in our web application, and when we contacted Microsoft with a simple
repro to demonstrate the problem, they marked it "unsupported" a few
weeks later. I wouldn't recommend using it.
In the moment, and if you don't want to use the Atlas libraries, you are
pretty much stuck with simple XmlHttp requests, or write your own
JavaScript SOAP library (which I did in about 2 weeks time). It was
hard, but it works well.
Unfortunately, I cannot post that code, as it is property of my firm
(Siemens), but you will have the code if you buy our product ;-)
HTH,
Laurent
you can use the xmlhhtprequest object to just send / fetch strings, in which case its easy.
Actually you can send/fetch any XML document, which makes it a bit more
flexible. -- bruce (sqlwork.com)
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: cyberstrike |
last post by:
Hi guys, my company was wondering if it's possible to develop
ASP.NET/Webservices easily using a IIS installed on a server instead of
installing IIS locally on the development boxes. Can you...
|
by: Antuane |
last post by:
any one have any idea how transactions could be enabled in webservices.
i.e., suppose i've got 2 methods - one to add a contact, & the other to set
some miscellaneous details for the contact, in a...
|
by: Mike |
last post by:
Hi all,
I have written a webservice which I am using in my smartphone applicaiton.
I have tried the webservice with a WinForms client and it works time and time
again perfectly. When I include...
|
by: Komandur Kannan |
last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The
backend is Oracle and a middle tier web services development done in Vb.net.
We use pessimistic Locking due to...
|
by: Jianwei Sun |
last post by:
Hi, Dear guru,
I have a question on embed a javascript into the master page.
I put the following line
<link runat="server" type="text/javascript" href="~/column.js" />
under the head, but...
| |
by: Sekhar |
last post by:
Hi all
I have an ASP.NET Button Control. I woud like this button to make a Call to
JavaScript function on some condition. How would i do this
Thanks
Sekhar
|
by: hashamkhan |
last post by:
Dear All,
I have build a web services that returns product information. In that
web services I want to display some text in the Footer. To get this I
have a .js file constructed. Now I want to...
|
by: Tony Girgenti |
last post by:
Hello.
I'm developing and testing a web application using VS.NET 2003, VB, .NET
Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
computer. I'm using a web form.
Using...
|
by: Jaweed Sheikh |
last post by:
Actually iam consuming a web service from traditional ASP and trying to read the XML from Javascript. Will appriciate any quick help. Here is the code
<%
If...
|
by: Nightcrawler |
last post by:
I recently moved over a bunch of functionality to use javascript and
webservices. I ran into the issue where a webservice taking longer
than 10 seconds to respond will cause Firefox to throw a fit...
|
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,...
| |
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |