473,406 Members | 2,549 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,406 software developers and data experts.

How to call a web service across all popular browsers?

Hi all

I have a web service that I have written. It is written in C#

I want to use this web service from a browser, but my users all have
different browsers so its important that the code to access the web
service works across IE, Firefox and other browsers

Does anybody know if they are libraries out there that do this?

Has anyone done anything similiar?

Many thanks

Dec 15 '05 #1
2 1603
<il***@igsoftwaresolutions.co.uk> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi all

I have a web service that I have written. It is written in C#

I want to use this web service from a browser, but my users all have
different browsers so its important that the code to access the web
service works across IE, Firefox and other browsers

Does anybody know if they are libraries out there that do this?

Has anyone done anything similiar?


If you google for "Javascript soap client", you will get approx 1000000 hits
where there is several interesting links on the first page...

--
Dag.
Dec 15 '05 #2


il***@igsoftwaresolutions.co.uk wrote:
I have a web service that I have written. It is written in C#

I want to use this web service from a browser, but my users all have
different browsers so its important that the code to access the web
service works across IE, Firefox and other browsers

IE/Win has the web service behaviour to allow to make SOAP requests to a
web service where the behviour does all the SOAP encapsulation for you
and your script just calls methods and passes arguments and receives values.
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/webservice_node_entry.asp>

Mozilla has two APIs to deal with web services, a low level SOAP API and
a high level WSDL proxy API, the latter again hides all SOAP stuff and
simply loads the WSDL description of the web service to create a
client-side proxy object which then has the methods of the service to be
called by your code.
<http://www.mozilla.org/projects/webservices/>
However interoperability of the Mozilla APIs with .NET web services is
not as you might want it or need it.

Other browsers like Opera or Safari (as far as I am aware) do not have
any special APIs to deal with web services besides providing an
implementation of the XMLHttpRequest object so you have a chance to use
that to either
- build SOAP requests yourself as an XML DOM document, set the SOAP
action as a HTTP request header and make the request, receive the SOAP
response and parse it yourself
- or to forget about SOAP and simply try to make normal POST requests to
the web service. .NET web services can be configured to not only allow
SOAP requests but also GET or POST HTTP requests with Content-Type
application/x-www-form-urlencoded data.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 16 '05 #3

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

Similar topics

2
by: Simon | last post by:
Hi, I am having a little problem with my PHP - MySQl code, I have two tables (shown below) and I am trying populate a template page with data from both. <disclaimer>Now I would like to say my...
15
by: chirs | last post by:
I am trying to understand a piece of code. In a javascrpit file, there is a function: function ItemStyle(){ var names=; addProps(this,arguments,names,true); }; In the html file, it calls...
3
by: jabailo | last post by:
I am running the following remoting server as a Console application, and I want to convert it to a Windows Service. static void Main(string args) {...
26
by: Dave Hammond | last post by:
In document "A.html" I have defined a function and within the document body have included an IFRAME element who's source is document "B.html". In document "B.html" I am trying to call the function...
3
by: Steve Amey | last post by:
Hi all Is it possible to retrieve data from a Windows Service? Let's say I have a service that contains code in the OnStart method that creates a DataSet, from a client application I'm using a...
7
by: Alessandro Benedetti | last post by:
Hi. I'm calling two methods of a .NET Webservice (A) from another Webservice (B). The A Webservice is made like this: public class WSA: System.Web.Services.WebService { private int X = 0;
2
by: =?Utf-8?B?T3Jlbg==?= | last post by:
Hi, I have a question: How to build a web service without the use of .Net Framework? For an instance how to do it with C++? I have used web services based on ASP.NET in the past and it is...
1
by: y2ktan | last post by:
hi guys, I am building my web page using AJAX in ASP.Net, now I want to make a cross-domain call from my web application to my web service that both of them are hosted at different machine. I...
19
by: Prisoner at War | last post by:
Okay, Folks, I guess my real burning concern all along is a "high-level" one: just how does JavaScript interact with CSS? Right now, my newbie self only knows JavaScript and CSS to *co-...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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 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.