<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/70689.aspx</link><pubDate>Wed, 28 Sep 2011 19:14:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70689</guid><dc:creator>CassimY</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=70689</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have a dev, QA, Authoring, Staging and Production environment and each environment has its own url.&amp;nbsp; I&amp;#39;m developing an InfoPath form that has data connections to lists in the host site.&amp;nbsp; When I deploy to QA, I have to modify each data connection to point to the QA url, and likewise for Authoring, Staging and Production.&lt;/p&gt;
&lt;p&gt;How can I set the data connection to read the url of the host site dynamically?\&lt;/p&gt;
&lt;p&gt;Thanx&lt;/p&gt;
&lt;p&gt;Yusuf&lt;/p&gt;</description></item><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17617.aspx</link><pubDate>Sat, 25 Mar 2006 14:59:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17617</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17617.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17617</wfw:commentRss><description>Also, we have this tool in our webstore that can update data connections and deploy mutliple versions of the form to all different places.  All you have to do is setup a configuration file one time, and when you are ready to publish, run the program.  It will update all data connections that you specify and save to one or several new places.&lt;br /&gt;&lt;br /&gt;Check it out:&lt;br /&lt;a target="_blank" href=http://infopathdev.com/webstore/detail.aspx?itemid=21&gt;http://infopathdev.com/webstore/detail.aspx?itemid=21&lt;/a&gt;</description></item><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17616.aspx</link><pubDate>Sat, 25 Mar 2006 06:37:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17616</guid><dc:creator>CGlover</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17616.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17616</wfw:commentRss><description>Oops - wrong button...&lt;br /&gt;&lt;br /&gt;What I was about to say was,&lt;br /&gt;&lt;br /&gt;127.0.0.1    nameofyourproductionserver&lt;br /&gt;&lt;br /&gt;When you are not doing IP development you will have to delete this line.  A bit of vb script should allow you to have two hosts files and swap them using a shortcut.&lt;br /&gt;&lt;br /&gt;Clive&lt;br /&gt;</description></item><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17615.aspx</link><pubDate>Sat, 25 Mar 2006 06:32:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17615</guid><dc:creator>CGlover</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17615</wfw:commentRss><description>John,&lt;br /&gt;&lt;br /&gt;Thanks - this works perfectly.  For anyone unfamiliar with this file: add the line&lt;br /&gt;127.0.0.1</description></item><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17614.aspx</link><pubDate>Fri, 03 Feb 2006 16:17:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17614</guid><dc:creator>johngidd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17614.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17614</wfw:commentRss><description>Just for reference on future forms, for web development in general I usually switch my hosts file "C:\WINDOWS\system32\drivers\etc" to point to my development server(local or otherwise) using the same domain name etc that is used on the production servers.  That way the forms remain consistent with the same url, just change your host file to point to a server of your choosing.  Non public domain and client systems, either change their hosts file or run a local DNS if they have it and regardless of the machine where the host service is, you can redirect the client on the same universal URL.   One form, one url, works for everyone scenario.  This is more of a network/hardware solution and may not work for everyone.  I just got tired of changing the data connections on the forms, too time consuming and did not like tracking multiple versions of the same form just with different data connections.</description></item><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17613.aspx</link><pubDate>Thu, 10 Nov 2005 07:53:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17613</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17613.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17613</wfw:commentRss><description>I've got a fairly ugly solution to your problem but it's the best I've got to offer at the moment (C# code):&lt;br /&gt;&lt;br /&gt;// &lt;br /&gt;// Set the web service URL based upon environment...&lt;br /&gt;// &lt;br /&gt;WebServiceAdapterObject adapterWeb;				// used to reference web service data adapter&lt;br /&gt;// 'GetUserData' web service...&lt;br /&gt;adapterWeb = (WebServiceAdapterObject)thisXDocument.DataAdapters["GetUserData"];&lt;br /&gt;// Load the xsf:operation element into an temporary XML DOM...&lt;br /&gt;IXMLDOMDocument3 tempDOM = thisXDocument.CreateDOM() as IXMLDOMDocument3;&lt;br /&gt;tempDOM.loadXML( adapterWeb.Operation );&lt;br /&gt;tempDOM.documentElement.attributes.getNamedItem( "serviceUrl" ).text = thisXDocument.DOM.selectSingleNode("my:Form/my:InfoPathFormData/my:WebServiceURL").text;&lt;br /&gt;adapterWeb.Operation = tempDOM.xml;&lt;br /&gt;&lt;br /&gt;Basically this modifies the ServiceURL property of the WebAdaptor to point at the URL you wish to use.  I've stored that URL within my schema at "my:Form/my:InfoPathFormData/my:WebServiceURL".&lt;br /&gt;&lt;br /&gt;I'm not sure if all of this is accessible using script but hopefully this can point you in the right direction.&lt;br /&gt;</description></item><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17612.aspx</link><pubDate>Fri, 20 May 2005 16:53:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17612</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17612.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17612</wfw:commentRss><description>Till now I dint see any programatical way of doing this.&lt;br /&gt;There is a property called "WSDLURL" in "WebServiceAdapter" class but this is a readonly property. &lt;br /&gt;You can do further investigations on this and let us know if you find anything interesting.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17611.aspx</link><pubDate>Fri, 20 May 2005 14:59:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17611</guid><dc:creator>webuser</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17611.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17611</wfw:commentRss><description>Thanks for your reply, Agni. Your solution entails extracting the files from the InfoPath XSN file, modifying the manifest.xsf file and repackaging the InfoPath form, right?&lt;br /&gt;&lt;br /&gt;Is there anyway we can programmatically alter the URLs of the data connection references? I suppose we could do that if the references are dynamic, and I am not sure if InfoPath only works with static references.</description></item><item><title>Re: updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17610.aspx</link><pubDate>Fri, 20 May 2005 07:45:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17610</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17610.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17610</wfw:commentRss><description>You need not do it in the User Interface. You can directly edit manifest.xsf file and search for your dataconnection path and replace the exesting webservice URL with your new URL.&lt;br /&gt;File save manifest.xsf and publish it.&lt;br /&gt;&lt;br /&gt;PS. Be careful when you edit manifest.xsf, any small mistake might screwup your solution. It would be better if you make a copy of your solution before doing this.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>updating data connections during deployment</title><link>https://www.infopathdev.com:443/forums/thread/17458.aspx</link><pubDate>Thu, 19 May 2005 20:46:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17458</guid><dc:creator>webuser</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17458</wfw:commentRss><description>I have created several data connections in my InfoPath form, pointed to web services running on the development box. Now, I need to deploy the form and need to update the data connections to use corresponding web services on the production server. I am having to do this manually, and it is quite cumbersome. Is there an equivalent of app.config like an easily updateable configuration file, so I could simply change the location of the web services all together as opposed to doing them one by one in the InfoPath interface?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>