Solved

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

Posted on 2010-09-21
1
739 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 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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. …
When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 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