473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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?
Nov 23 '05 #1
1 3346
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

Dan A wrote:
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?

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bobby | last post by:
I've created a xml schema file in my webservice and than added a web reference to my web application. I have built the succesfully before adding the web reference. But i can not generate a...
1
by: Shi Jin | last post by:
Hi there, I am very new to C# and dot net. I am currently working on a web service and a client. Now I need to change the default class construction in the proxy code from this.Url = "some...
0
by: momina_dar | last post by:
AlachiSoft “TierDeveloper” eradicates the problem of writing thousands of lines of code for your middle tier. Many software solutions on the market can do it for you but according to our research...
82
by: robert bristow-johnson | last post by:
here is a post i put out (using Google Groups) that got dropped by google: i am using gcc as so: $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure...
3
by: mike | last post by:
Hi Guys, Following piece of code can capture IOError when the file doesn't exist, also, other unknown exceptions can be captured when I press Ctrl-C while the program is sleeping(time.sleep)....
1
by: Niels Ull | last post by:
Hi! I'm using .Net 2.0 and C#, and I'm trying to generate code for build time AOP. But I cannot find out how to generate an anonymous delegate. E.g. generating code like this: class...
3
by: fnz60 | last post by:
hi every body i have a site designed by asp.net . it use database to save data. how can i generate html pages for my data ? i nedd this work to improve my site level in search engine sites .
1
by: shruthid | last post by:
can we generate a class for the following xsd file using xsd.exe?? it does'nt contain a complex type.. <?xml version="1.0" encoding="UTF-8" ?> <xs:schema...
0
by: TintuMJ | last post by:
How can we generate a Script with all user permissions of all users in a particular database in SQL Server 2005. It should be in such a way that if we run this script later, all these permissions are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.