<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Rule on field that calls Web Service not triggered when field is updated via code</title><link>https://www.infopathdev.com:443/forums/thread/56922.aspx</link><pubDate>Wed, 14 Jul 2010 14:49:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56922</guid><dc:creator>j0hnglist</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=56922</wfw:commentRss><description>&lt;p&gt;So I have a browser InfoPath form thats working nicely with data connections in SharePoint. I publish it to a SharePoint list and its there as an XML file.&amp;nbsp; Now, I am dynamically opening the XML file with a .NET application and setting the value of one of my fields. Although the field&amp;#39;s value is updated correctly, this DOES NOT trigger the rule set up on that field that is supposed to call&amp;nbsp; a Web Service and populate the dropdown.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;So my question is this: will setting values using .NET code trigger rules to run on that field as if I was manually entering data into that field? And if I want the easiest way to have the form call my web service, can I just set that field and have the form behave normally? Or do I need to call the web service manually in my code? And if so, how is this accomplished?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Your replies are much appreciated. Thanks all. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>