Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2010-09-21
1
Medium Priority
?
742 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
clayfox earned 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

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. …
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

597 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