Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / July 2007

Tip: Looking for answers? Try searching our database.

Infopath cannot connect to data source - Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Natalie Lewis - 06 Jul 2007 21:50 GMT
We have a web service set up to generate an unique ID to be used in an
Infopath form.  The web service is installed on our sharepoint server 2007
and it can be accessed from multiple computers.  However, when we create a
new form from the InfoPath form library on Sharepoint we receive the
following error:

Form template:
http://mossdev.dci.com/ind/ddTestReq/Disk%20Drive%20Test%20Lab%20Request%20Form/
Forms/template.xsn

The following DataObject either cannot be created or cannot be initialized:
NextDDSerialNumber
The query cannot be run for the following DataObject: NextDDSerialNumber
InfoPath cannot run the specified query.
InfoPath either cannot connect to the data source or the service has timed
out.
S.Y.M. Wong-A-Ton - 08 Jul 2007 08:46 GMT
Is it a browser form making use of the web service? And how does the web
service generate the unique ID? Does it access a database? The error could
have many causes, so it's difficult to say what is going wrong, but one of
these causes can be denial of access to network resources.
---
S.Y.M. Wong-A-Ton


> We have a web service set up to generate an unique ID to be used in an
> Infopath form.  The web service is installed on our sharepoint server 2007
[quoted text clipped - 10 lines]
> InfoPath either cannot connect to the data source or the service has timed
> out.
Natalie Lewis - 09 Jul 2007 14:24 GMT
It is an Infopath form being opened in Infopath.  The webservice increments
an ID in a text file on a network path.  I think it's a security issue, but
I've tried several things and nothing seems to work.

> Is it a browser form making use of the web service? And how does the web
> service generate the unique ID? Does it access a database? The error could
[quoted text clipped - 18 lines]
> > InfoPath either cannot connect to the data source or the service has timed
> > out.
S.Y.M. Wong-A-Ton - 10 Jul 2007 08:30 GMT
I think so too! Did you test the web service independently of InfoPath? Does
it work? How are you calling the web service in InfoPath? Through code?
---
S.Y.M. Wong-A-Ton

> It is an Infopath form being opened in Infopath.  The webservice increments
> an ID in a text file on a network path.  I think it's a security issue, but
[quoted text clipped - 22 lines]
> > > InfoPath either cannot connect to the data source or the service has timed
> > > out.
Natalie Lewis - 10 Jul 2007 14:24 GMT
It works as a web service if I'm running it as me from my machine.  If I try
to access it from another computer, I can navigate to the web service page,
but I can't run it.  From everything I've read, its got to be related to the
text file that has to be written to be the webservice.  I've tried giving the
application pool the web service runs under, aspnet, computername_User and
authenticated users access to the folder to write to it.  I can get to the
point where it looks like it will work - but then it either gives me the
error above or an access is denied error.  (I'm not a programmer by training,
so this is a bit of a hunt and peck expedition for me...)  Thanks for your
help!

> I think so too! Did you test the web service independently of InfoPath? Does
> it work? How are you calling the web service in InfoPath? Through code?
[quoted text clipped - 27 lines]
> > > > InfoPath either cannot connect to the data source or the service has timed
> > > > out.
S.Y.M. Wong-A-Ton - 11 Jul 2007 03:44 GMT
For a non-programmer you know quite a bit. :)  You gave permissions on the
folder, but how about the file itself? And what OS is the web service running
on? If it is running on Win 2003 server, you may want to try giving write
permission to the Network Service account if your web service is not
impersonating any user account.
---
S.Y.M. Wong-A-Ton

> It works as a web service if I'm running it as me from my machine.  If I try
> to access it from another computer, I can navigate to the web service page,
[quoted text clipped - 38 lines]
> > > > > InfoPath either cannot connect to the data source or the service has timed
> > > > > out.
Natalie Lewis - 11 Jul 2007 15:24 GMT
I gave permissions for aspnet and network service to the folder and the file.
The webservice is running on a Win 2003 server.  I've read that you should
have the config file impersonate the network service, but I'm not sure how to
do that.

> For a non-programmer you know quite a bit. :)  You gave permissions on the
> folder, but how about the file itself? And what OS is the web service running
[quoted text clipped - 46 lines]
> > > > > > InfoPath either cannot connect to the data source or the service has timed
> > > > > > out.
S.Y.M. Wong-A-Ton - 12 Jul 2007 00:44 GMT
If you haven't changed the default user account on the application pool the
web service is using, Network Service should be the default account being
used on a Win 2K3 server box. So you need not impersonate the Network Service
account. However, if you want to let the web service run under a different
account than the Network Service account, you can set this on the application
pool or impersonate a user in the web.config of the web service using the
<identity> element (see http://support.microsoft.com/kb/315736).

Another question: Is anonymous access enabled on your web service? If it
isn't and you're calling the web service from code, you need to specify valid
credentials to access it.
---
S.Y.M. Wong-A-Ton

> I gave permissions for aspnet and network service to the folder and the file.
>  The webservice is running on a Win 2003 server.  I've read that you should
[quoted text clipped - 51 lines]
> > > > > > > InfoPath either cannot connect to the data source or the service has timed
> > > > > > > out.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.