Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

Why can't .NET generate wrappers for exceptions (WSDL faults)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan A - 08 Feb 2005 21:19 GMT
Why can't .NET generate stubs to correspond to the exceptions that are thrown
by a webservice?  

The exceptions that are thrown by an API are just as importantant as the
return objects, etc.   Apache Axis automatically generates client stubs for
exceptions that are thrown by a server - and they these exceptions are
automatically thrown whenever it occurs on the server, just like it should.

In .NET world - the best it seems to be able to do is throw a generic
SOAPException whenever any exception happens on the server.

If I want to do a lot of work, it appears that I may be able to dig through
the SOAP exception to get down the the underlying WSDL fault, to figure out
what exception should have been thrown.  But I shouldn't have to do this -
all of the necessary information is there for this to be generated
automatically.

Are there any workarounds for this?  Will it be fixed in a future version of
.NET?
erymuzuan - 09 Feb 2005 10:03 GMT
Exception is a .Net type, most of the time cannot be properly serialized
to Xml..  use SoapException class for your exception may be provide the
details of the .Net exception as well in the details

BTW, you can utilise WSDL's fault element defining the type of excpetion
and information it carries

regards
erymuzuan mustapa

> Why can't .NET generate stubs to correspond to the exceptions that are thrown
> by a webservice?  
[quoted text clipped - 15 lines]
> Are there any workarounds for this?  Will it be fixed in a future version of
> .NET?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.