Hello,
I am trying to get useful error messages to return to the infoPath form after submitting a browser enabled form via a web service. I would like to replace the "An error occurred while the form was being submitted." message.
Here is my InfoPath code.
public void FormEvents_Submit(object sender, SubmitEventArgs e)
{
try
{
// Invoke the data connection
DataConnections["Incident Form Submit"].Execute(); e.CancelableArgs.Cancel = false;
}
catch (Exception ex)
{
throw new SoapException("This is a test exception:" + ex.Message, SoapException.ClientFaultCode);
}