<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Change URL of Webservice in Code and in Sec. DS</title><link>https://www.infopathdev.com:443/forums/thread/10400.aspx</link><pubDate>Thu, 24 Aug 2006 14:21:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10400</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10400</wfw:commentRss><description>Ok thank you very much Agni.&lt;br /&gt;&lt;br /&gt;I was thinking that can be a big problem to change the Url but fortunately  no ;)&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: Change URL of Webservice in Code and in Sec. DS</title><link>https://www.infopathdev.com:443/forums/thread/10399.aspx</link><pubDate>Wed, 23 Aug 2006 20:44:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10399</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10399.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10399</wfw:commentRss><description>Object of Webreference class will have "Url" property. You just need to set value to it.</description></item><item><title>Re: Change URL of Webservice in Code and in Sec. DS</title><link>https://www.infopathdev.com:443/forums/thread/10398.aspx</link><pubDate>Wed, 23 Aug 2006 08:51:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10398</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10398</wfw:commentRss><description>Hi Agni,&lt;br /&gt;&lt;br /&gt;Thanks so much for sharing this, that's work great!!!&lt;br /&gt;&lt;br /&gt;Have you any idea about how to make the same things on the webreference that I have made in my C# code?&lt;br /&gt;&lt;br /&gt;Thanks a lot&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: Change URL of Webservice in Code and in Sec. DS</title><link>https://www.infopathdev.com:443/forums/thread/10397.aspx</link><pubDate>Tue, 22 Aug 2006 19:51:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10397</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10397</wfw:commentRss><description>Yes you can set url in the onload method using the following code&lt;br /&gt;WebServiceAdapter2 da;&lt;br /&gt;IXMLDOMDocument xmlOperation;&lt;br /&gt;da = (WebServiceAdapter2)thisXDocument.DataAdapters["dataadaptername"];&lt;br /&gt;xmlOperation = thisXDocument.CreateDOM();&lt;br /&gt;xmlOperation.loadXML(da.Operation);&lt;br /&gt;xmlOperation.documentElement.selectSingleNode("@serviceUrl").text = "URL";&lt;br /&gt;da.Operation = xmlOperation.xml;</description></item><item><title>Change URL of Webservice in Code and in Sec. DS</title><link>https://www.infopathdev.com:443/forums/thread/5805.aspx</link><pubDate>Tue, 22 Aug 2006 13:00:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5805</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5805</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I need to deploy my xsn form on multiple company-sites and so the webservice-sever  has different name. for example:&lt;br /&gt;&lt;br /&gt;company 1:&lt;a target="_blank" href=http://zefix.powernet.ch/webservices/tdf/tdf.asmx&gt;http://zefix.powernet.ch/webservices/tdf/tdf.asmx&lt;/a&gt;&lt;br /&gt;company 2:&lt;a target="_blank" href=http://ml370g4/webservices/tdf/tdf.asmx&gt;http://ml370g4/webservices/tdf/tdf.asmx&lt;/a&gt;&lt;br /&gt;company 3:&lt;a target="_blank" href=http://m520pl/webservices/tdf/tdf.asmx&gt;http://m520pl/webservices/tdf/tdf.asmx&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;So Is there a way for change the Url of this secondary datasource (webservice) for example in the onload event ?&lt;br /&gt;&lt;br /&gt;Have you any idea about how can I do?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;</description></item></channel></rss>