ASP.NET webservice & Javascript

  • Thread starter Thread starter Karl
  • Start date Start date
K

Karl

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
 
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!
***************************
 
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.
 
Back
Top