<?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: Call Web Service from Manage Code, Again</title><link>https://www.infopathdev.com:443/forums/thread/17894.aspx</link><pubDate>Tue, 08 Aug 2006 09:40:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17894</guid><dc:creator>Suresh Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17894.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17894</wfw:commentRss><description>Hi trimba,&lt;br /&gt;&lt;br /&gt;It is possible to do. for  samples search the InfoPath SDK? Should be some JS samples in there that call Web services.</description></item><item><title>Call Web Service from Manage Code, Again</title><link>https://www.infopathdev.com:443/forums/thread/17551.aspx</link><pubDate>Tue, 08 Aug 2006 03:28:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17551</guid><dc:creator>trimba</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17551.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17551</wfw:commentRss><description>Hi guys,&lt;br /&gt;&lt;br /&gt;I have a web service that update sql database using all its parameters. Then I use the web service in my infopath form to update the sql database by&lt;br /&gt;&lt;br /&gt;Add Data Connection &lt;br /&gt;1. Tools&amp;gt;Data Connection&amp;gt;Add&amp;gt;Submit data&amp;gt;To Web Service&amp;gt;&lt;br /&gt;2. Identify the web service and &lt;br /&gt;3. Set all the parameters from InfoPath form fields&lt;br /&gt;4. Provide Data Connection name "updateTable"&lt;br /&gt;&lt;br /&gt;Add Button&lt;br /&gt;1. Add button control&lt;br /&gt;2. Set Rules in button properties&lt;br /&gt;3. Rules action is to Submit using data connection and&lt;br /&gt;4. Select the data connection "updateTable"&lt;br /&gt;&lt;br /&gt;That's done, I can update the sql database from Infopath form with NO PROBLEM at all. But the question is Can I call the Data connection created from manage code ? &lt;br /&gt;&lt;br /&gt;Let say I want to call the web service in OnSaveRequest(SaveEvent e) function. Is this possible ? If it is possible, Can somebody please give me an example ...&lt;br /&gt;&lt;br /&gt;Thank you</description></item></channel></rss>