|
Module Module1
Sub Main()
'Console.WriteLine("If you want to debug the SoapExtension, you must: ")
'Console.WriteLine()
'Console.WriteLine("1) set the web service project as the startup project")
'Console.WriteLine("2) set breakpoints in the SoapExtension or Handler ")
'Console.WriteLine("3) Press F5 to begin debugging ")
'Console.WriteLine("4) Execute this console app AS A BINARY from the \bin folder ")
'Console.WriteLine()
'Console.WriteLine("Press ENTER to continue...")
'Console.ReadLine()
Dim w As New WebReference.Service1
Try
w.GenerateException()
Catch ex As System.Web.Services.Protocols.SoapException
Console.WriteLine("System.Web.Services.Protocols.SoapException caught!")
Console.WriteLine("Press ENTER to see details...")
Console.WriteLine("Message: " & ex.Message)
Console.WriteLine("Detail.OuterXml:")
Console.WriteLine(ex.Detail.OuterXml)
Console.WriteLine("Press ENTER to continue...")
Console.ReadLine()
End Try
End Sub
End Module
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
My name is Jeff Atwood. I live in Berkeley, CA with my wife, two cats, and far more computers than I care to mention. My first computer was the
Texas Instruments TI-99/4a. I've been a Microsoft Windows developer since 1992; primarily in VB. I am particularly interested in best practices and human factors in software development, as represented in my
recommended developer reading list. I also have a coding and human factors related blog at
www.codinghorror.com.