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

ASP.NET webservice & Javascript

P: n/a

Can Javascript code catch an exception thrown in an ASP.NET webservice?
(Using XMLHTTPRequest object to send the SOAP message to the webservice.)

If so, what't the Javascript syntax please?

TIA
Dec 30 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
For example code, you can look at the Microsoft WebService HTC:
http://msdn.microsoft.com/library/de...webservice.asp

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Karl" wrote:

Can Javascript code catch an exception thrown in an ASP.NET webservice?
(Using XMLHTTPRequest object to send the SOAP message to the webservice.)

If so, what't the Javascript syntax please?

TIA

Dec 30 '05 #2

P: n/a
You can pull apart a SOAP message in JavaScript and interrogate it, if that
is your desire. It is treated as a collection of objects, if I remember
correctly. You have to know what you are going to receive when you get an
error.

I assume you are attempting some form of Ajax type implementation? If so,
consider something like Ajax .NET, as there are some facilities already coded
in to help you with this stuff.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Karl" wrote:

Can Javascript code catch an exception thrown in an ASP.NET webservice?
(Using XMLHTTPRequest object to send the SOAP message to the webservice.)

If so, what't the Javascript syntax please?

TIA

Dec 30 '05 #3

P: n/a
There is a AJAX Engine available that is implemented upon the
WebService protocols SOAP and WSDL for the client-server communication.
See http://www.mathertel.de.
You can find a WebService Client in JavaScript there too that works
with IE and FireFox/Mozilla.
The server side is based in ASP.NET and C# and there are web controls
that make the implementation really easy.

Microsoft has announced to support WebServices too with the upcomming
ATLAS framework.

Dec 31 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.