Guest User

Untitled

a guest
Sep 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Catch SOAP Exception .NET
  2. Try
  3. 'Code
  4.  
  5. Catch soapExcpHeader As System.Web.Services.Protocols.SoapHeaderException
  6. 'Can't catch here
  7. Dim error_desc As String = soapExcpHeader.Detail.OuterXml
  8. Throw New System.Web.Services.Protocols.SoapHeaderException()
  9. Catch soapExcp As System.Web.Services.Protocols.SoapException
  10. 'Can't catch here
  11. Dim error_desc As String = soapExcp.Detail.OuterXml
  12. Throw New System.Web.Services.Protocols.SoapException
  13. Catch webExcp As System.Net.WebException
  14. 'Here I catch
  15. Console.WriteLine(webExcp.ToString())
  16. Throw webExcp
  17. Catch ex as Exception
  18. 'Other types of exceptions
  19. Throw ex
  20. End Try
Add Comment
Please, Sign In to add comment