Solved

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

Posted on 2010-09-21
1
737 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
ID: 33731704
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Sharepoint to FTP? 3 67
Is there a SharePoint setup guide for beginners? 18 59
JavaScript waiting 14 79
InfoPath DropDown Box - Can user add to list? 2 27
Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

785 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