Advertisement

04.18.2008 at 12:31PM PDT, ID: 23335361
[x]
Attachment Details

Access Web Service in Infopath Browser-Enabled Form

Asked by LakelandBank in MOSS-Sharepoint

Tags: , , , ,

I am using one of the default web services that comes with MOSS to fill in the current user's name in an InfoPath form.  It works very well using the InfoPath client, however the same form viewed in a web browser returns the following error:

An error occurred accessing a data source.
An entry has been added to the Windows event log of the server.
Log ID: 5566

The web service URL is:
http://sitename/_vti_bin/userprofileservice.asmx?wsdl

I found some information online referring to using a UDC file to make this connection outside of InfoPath.  I used the convert button in InfoPath to convert the file to a UDC that is saved in a data connection library on the site.  However, this still didn't resolve the problem.

I also added in the following section before the end tag for "ConnectionInfo".

            <udc:Authentication>
                <udc:UseExplicit CredentialType="NTLM">
                    <udc:UserId>DOMAIN\USERNAME</udc:UserId>
                    <udc:Password>PASSWORD</udc:Password>
                </udc:UseExplicit>
            </udc:Authentication>

I still had no success with or without the domain prepended to the username.

Finally, I tried changing the access in the form to Full Trust.  I uploaded the form to the Central Admin, approved, and set the content type in my form library to match.  Still no luck there.

I have a feeling I must be missing something simple.  This works just beautifully in InfoPath, but the browser form keeps giving me the error.  

Has anyone had success in using web services in browser-enabled forms?  If so, what steps need to be taken to make this work?
Start Free Trial
[+][-]04.18.2008 at 12:53PM PDT, ID: 21389094

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.18.2008 at 01:06PM PDT, ID: 21389176

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.18.2008 at 01:34PM PDT, ID: 21389418

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2008 at 08:30AM PDT, ID: 21412092

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2008 at 08:38AM PDT, ID: 21412172

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MOSS-Sharepoint
Tags: Microsoft, SharePoint, 2007, MOSS 2007, An error occured accessing the data source. An entry has been added to the Windows event log of the server. Log ID: 5566
Sign Up Now!
Solution Provided By: clayfox
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.22.2008 at 09:22AM PDT, ID: 21412705

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2008 at 12:24PM PDT, ID: 21414558

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628