Can browser-based InfoPath form handle exceptions from web service?
Posted on 2010-09-21
Environment: MOSS 2007 Enterprise, InfoPath Form Services, Web service (ASMX) written in C#
InfoPath form was invoked using InfoPath 2007 client and through the browser. This form submits data to web service. The web service inserts data into the back-end after validation.
If the web service throws an exception, InfoPath 2007 client displays the exception but the browser-based InfoPath form just says the form was not submitted successfully. In the browser-based InfoPath form, can we display the exception or a custom message depending on the exception received?
Let's assume that clicking on Submit in InfoPath submits data to a web service. The web service evaluates incoming data, the data fails validation and web service returns an integer or a string back (say 5 or Order number is invalid) back. Can InfoPath, especially browser-based forms, display this information to the user?