By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,282 Members | 1,504 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,282 IT Pros & Developers. It's quick & easy.

How to call a web service across all popular browsers?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
<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

P: n/a


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 discussion thread is closed

Replies have been disabled for this discussion.