Solved

Can browser-based InfoPath form handle exceptions from web service?

Posted on 2010-09-21
1
736 Views
Last Modified: 2012-05-10
Greetings,

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.

Q1:
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?

Q2:
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?

Thank you.
0
Comment
Question by:RavenInd
1 Comment
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
Comment Utility
I beleive the key is to call the webservices via code, then you could interpret and create handlers for the return messages.

There may be some help on www.infopathdev.com regarding how to setup the webservice.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now