473,804 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1624
<il***@igsoftwa resolutions.co. uk> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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***@igsoftwar esolutions.co.u k 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 interoperabilit y 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
3950
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 skills, especially with MySQL are rudimentary</disclaimer> However my code (link below) fails, the nested database call does not return any data and this has me stumped. Any help will be much appreciated. Many thanks in advance
15
4215
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 the function as:
3
6361
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) { System.Runtime.Remoting.RemotingConfiguration. Configure("ChatServer.exe.config");
26
45529
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 defined in "A.html", but every attempt results in an "is not a function" error. I have tried to invoke the function using parent.document.funcname(), top.document.funcname(), and various other identifying methods, but all result in the above...
3
4799
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 ServiceController to check that the Service on the specified machine is running, can I get the DataSet that is held within the Service? Is it possible to create Properties or have a function that returns the DataSet? Kind Regards,
7
2029
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
1188
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 very easy and comfy to do. In the current project architecture I can not use .Net because of the following topology:
1
3403
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 used the steps below to make the cross-domain call to the web service. First of all, I created a web service named as HRService.asmx and it is working fine by running under IIS 5.1. Secondy, I make a reference to the web service proxies by writing...
19
1742
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- exist*...but I'm beginning to get the sense that they actually interact -- or, perhaps more precisely, JavaScript acts upon CSS...but how, exactly??
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9576
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
10568
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
10323
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
10311
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
10074
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9138
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.