Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Catch SOAP Exception .NET
- Try
- 'Code
- Catch soapExcpHeader As System.Web.Services.Protocols.SoapHeaderException
- 'Can't catch here
- Dim error_desc As String = soapExcpHeader.Detail.OuterXml
- Throw New System.Web.Services.Protocols.SoapHeaderException()
- Catch soapExcp As System.Web.Services.Protocols.SoapException
- 'Can't catch here
- Dim error_desc As String = soapExcp.Detail.OuterXml
- Throw New System.Web.Services.Protocols.SoapException
- Catch webExcp As System.Net.WebException
- 'Here I catch
- Console.WriteLine(webExcp.ToString())
- Throw webExcp
- Catch ex as Exception
- 'Other types of exceptions
- Throw ex
- End Try
Add Comment
Please, Sign In to add comment