Connecting Tech Pros Worldwide Forums | Help | Site Map

ASP.NET webservice & Javascript

Karl
Guest
 
Posts: n/a
#1: Dec 30 '05

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

Peter Bromberg [C# MVP]
Guest
 
Posts: n/a
#2: Dec 30 '05

re: ASP.NET webservice & Javascript


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:
[color=blue]
>
> 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
>[/color]
Cowboy (Gregory A. Beamer) - MVP
Guest
 
Posts: n/a
#3: Dec 30 '05

re: ASP.NET webservice & Javascript


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:
[color=blue]
>
> 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
>[/color]
mathertel@gmail.com
Guest
 
Posts: n/a
#4: Dec 31 '05

re: ASP.NET webservice & Javascript


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.

Closed Thread


Similar ASP.NET bytes