> 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.
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.