InfoPath Config Files

D

Dave T

I would like to read the location of a webservice for a data connection from
some kind of config file but I can't seem to make it happen. The reason I
want to do this is so that the web service and infopath form can be moved
around from a dev environment, through QA and up to production with minimal
intervention (i.e, just changing the entry of the webservice in that config
file). Does anyone know how that might be done?

Thanks
 
R

Rahman Hadi

Hi Dave,
My team also got same problem while we want to publish the form to
production server. i always used rewritecode to redirecting web service and
recompile then publish. Regarding this application is not form application
which is have same .config file.
But, for good deployment purposes i suggest you used xml file and put it in
certain physical path on template(.xsn) server.(i.e:
"c:\System\Config\AppInfopath.xml") , so, while loading form in formcode.cs
[use code from VS.Net for office development] you can access the xml file
then deserialized it to object class / or just read it.
it just an option ... you can try it ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top