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 / October 2006

Tip: Looking for answers? Try searching our database.

wsdl.exe not creating class for fault element

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick Locke - 21 Oct 2006 11:53 GMT
I have already seen this:

>> And I should point out that wsdl.exe ignores fault messages in the
>> <portType> operations. You can manually insert them, but the wsdl tool
>> will
>> ignore them when it generates classes. There is currently no way that I
>> know
>> of to have VS .NET or the command line tools automatically generate wsdl
>> that includes fault message references.

and I assume that this is still correct.  I had been hoping to see a
generated class definition relating to the fault element already definined
in the WSDL - but apparently not!

I will be returning effectively an array of Error Codes and Error
Descriptions.  What is the recommended way to make sure that my (contract
first) WSDL correctly represents what I am going to return from ASP.NET?  Or
is plan B to not actually formally define the error format in the WSDL?

Thanks, Nick.
John Saunders - 21 Oct 2006 18:36 GMT
>I have already seen this:
>
[quoted text clipped - 14 lines]
> first) WSDL correctly represents what I am going to return from ASP.NET?
> Or is plan B to not actually formally define the error format in the WSDL?

What I did is to define my fault messages in a separate schema, which is
referenced in the wsdl. I then ran that schema through XSD.EXE to get me
class definitions I could use in my code. When I wanted to generate a
SoapException corresponding to those faults, I serialized the generated
class into the Detail property of the SoapException.

John

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.