I need to return an error message to the client, if they have entered invalid data when calling my web service. So if my code is:
If Not IsNumeric(strOrderID) Then
Throw New SoapException("Invalid Order ID", SoapException.ClientFaultCode)
End If
I get a web page saying:
System.Web.Services.Protocols.SoapException: Invalid Order ID
at Service.GetHeaderValues(String strOrderID)
Is there a way to display a more user friendly error message (such as a message box or just the words "Invalid Order ID")?