<?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: Execute button in code for consuming web service</title><link>https://www.infopathdev.com:443/forums/thread/17932.aspx</link><pubDate>Tue, 02 Jan 2007 15:59:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17932</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17932</wfw:commentRss><description>Hi Eugene,&lt;br /&gt;&lt;br /&gt;I believe I answered this is another post, but can't seem to find it now.  What you have to do is move the code in the OnClick of the button to its own function and then call that from the OnClick and anywhere else you need it executed.  If your button is using rules you'll have to convert those rules to code and use the aforementioned technique.&lt;br /&gt;&lt;br /&gt;Cheers!</description></item><item><title>Execute button in code for consuming web service</title><link>https://www.infopathdev.com:443/forums/thread/17568.aspx</link><pubDate>Sun, 26 Nov 2006 02:04:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17568</guid><dc:creator>dream1213</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17568</wfw:commentRss><description>I created a new form web service. A button is created automatically on the form to consume web service.&lt;br /&gt;&lt;br /&gt;The button works well to talk with web service. The question is how I can execute this button in code.&lt;br /&gt;&lt;br /&gt;I know how to consume a web service in code, I just do not know how to execute that button in code. &lt;br /&gt;&lt;br /&gt;By the way, I am coding in vb.net vs 2005.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you in advance.&lt;br /&gt;&lt;br /&gt;Eugene,&lt;br /&gt;</description></item></channel></rss>