<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx</link><description>I have used InfoPath mainly with SharePoint and my experiences have been quite good. However I have always felt like something was missing... something that would really warm my developer heart. And I have found it! It's nice integration with Web Services.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#1860612</link><pubDate>Sun, 11 Mar 2007 23:51:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1860612</guid><dc:creator>Rodrigo</dc:creator><description>&lt;p&gt;Thanks a lot for this post. Quite useful. I'm attending &amp;nbsp;bootcamp MOSS2007 in short. Got an example for sending a form (xml) right from InfoPath to a web service?&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#1862048</link><pubDate>Mon, 12 Mar 2007 05:43:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1862048</guid><dc:creator>jannemattila</dc:creator><description>&lt;p&gt;Hi Rodrigo!&lt;/p&gt;
&lt;p&gt;Well you can create the mapping exactly the otherway round as well. So just create method like this:&lt;/p&gt;
&lt;p&gt;[WebMethod]&lt;/p&gt;
&lt;p&gt;public void SetEmployee(Employee employee)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// TODO: handle incoming employee&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;And then set field values from InfoPath and then submit it to the web service.&lt;/p&gt;
&lt;p&gt;Or if you really want to send xml form as a string you can do that too. Just add Submit data datasource with parameter &amp;quot;Entire form&amp;quot; and &amp;quot;Submit data as string&amp;quot;. With those settings you should be fine. And of course to your web service something like this:&lt;/p&gt;
&lt;p&gt;[WebMethod]&lt;/p&gt;
&lt;p&gt;public void SetEmployeeAsString(String employee)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// TODO: handle incoming employee&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I hope that this answered your question.&lt;/p&gt;
&lt;p&gt;Anyways... happy hacking!&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#1995568</link><pubDate>Fri, 30 Mar 2007 22:51:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1995568</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Thank you so much. &amp;nbsp;This was so helpful&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#2001046</link><pubDate>Sat, 31 Mar 2007 20:48:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2001046</guid><dc:creator>jannemattila</dc:creator><description>&lt;p&gt;Hi John!&lt;/p&gt;
&lt;p&gt;I'm glad you like... I hope I can create some posts in the future that will be helpful as well.&lt;/p&gt;
&lt;p&gt;Anyways... happy hacking!&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#3026086</link><pubDate>Fri, 01 Jun 2007 18:15:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3026086</guid><dc:creator>floppylo</dc:creator><description>&lt;p&gt;Hi Janne,&lt;/p&gt;
&lt;p&gt;I want to create a web service to insert infopath data into a SQL db. Is there any VB example rather than C you can point me to? &lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;v.&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#3026156</link><pubDate>Fri, 01 Jun 2007 18:25:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3026156</guid><dc:creator>jannemattila</dc:creator><description>&lt;p&gt;Hi floppylo!&lt;/p&gt;
&lt;p&gt;I don't have VB example since I'm not so good at it :-) But I think that there are some websites that actually transform code from C# to VB. Just search for it &amp;quot;convert c# to VB&amp;quot;.. I found this one but I haven't tested it: &lt;a rel="nofollow" target="_new" href="http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx"&gt;http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Anyways... happy hacking!&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#3027665</link><pubDate>Fri, 01 Jun 2007 20:09:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3027665</guid><dc:creator>floppylo</dc:creator><description>&lt;p&gt;Thanks for the link. I will def try it :)&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#3689902</link><pubDate>Wed, 04 Jul 2007 17:09:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3689902</guid><dc:creator>Alexandra</dc:creator><description>&lt;p&gt;Thanks a lot!! It really works, solved me a big problem! :)&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#4191562</link><pubDate>Thu, 02 Aug 2007 21:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4191562</guid><dc:creator>Nuntius</dc:creator><description>&lt;p&gt;Okay, first of all thanks, this is the best explanation I have found of how to do this. &lt;/p&gt;
&lt;p&gt;Second, I am just wondering if InfoPath is supposed to be user friendly enough for the average office user, why the heck isn't a web service creation tool not built into InfoPath? &lt;/p&gt;
&lt;p&gt;Also, why can't I just connect directly to the db? I get pretty frustrated with it since I can write a simple form pretty quickly in php or asp/AJAX without having to go through all the hassle. So can someone explain, &amp;quot;Why the complexity?&amp;quot;&lt;/p&gt;
&lt;p&gt;I built a nice form in InfoPath and then tried to submit it and it gave me all of these compatibility issues with Sharepoint. I am trying to give it a chance but so far it just sucks! &lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#4733331</link><pubDate>Tue, 04 Sep 2007 06:11:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4733331</guid><dc:creator>anne</dc:creator><description>&lt;p&gt;can we connect from infopath to SQL?&lt;/p&gt;
&lt;p&gt;thnx!&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#4898341</link><pubDate>Thu, 13 Sep 2007 22:28:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4898341</guid><dc:creator>&lt;moojjoo&gt;</dc:creator><description>&lt;p&gt;Great Blog Post. &amp;nbsp;I am in the process of needing to do some SQL Server Reporting Services (SSRS) and the current forms post to SharePoint. &amp;nbsp;Trying to read that data using WebServices from SharePoint is a nightmare. &amp;nbsp;I am going to attempt to post the InfoPath using WebSevices to a SQL Backend so the reporting will be really easy to develop.&lt;/p&gt;
&lt;p&gt;If you have any suggestions please contact me.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.mmwebs.com/cgi-bin/contact.asp"&gt;http://www.mmwebs.com/cgi-bin/contact.asp&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#4952283</link><pubDate>Mon, 17 Sep 2007 11:21:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4952283</guid><dc:creator>jannemattila</dc:creator><description>&lt;p&gt;Hi moojjoo!&lt;/p&gt;
&lt;p&gt;Did you mean that you tried to use SharePoint web services (can't remember but was it List.asmx) to get your data? I'm justing thinking out loud, but if you think that's too difficult (or something) you can always create proxy web service to actually handle all the internal data gathering logic from SharePoint.. if you wish. That would be easy to do.&lt;/p&gt;
&lt;p&gt;Anyways... Happy hacking!&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#5123929</link><pubDate>Tue, 25 Sep 2007 19:18:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5123929</guid><dc:creator>Robert Dannelly</dc:creator><description>&lt;p&gt;Can you provide more details on the proxy Web service? &amp;nbsp;First time I have heard of that.&lt;/p&gt;
</description></item><item><title>Adding own custom web service to SharePoint</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#5149055</link><pubDate>Wed, 26 Sep 2007 22:10:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5149055</guid><dc:creator>Janne Mattila's blog</dc:creator><description>&lt;p&gt;I posted awhile back about InfoPath and Web Service data connection and I got question about using own&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#5149109</link><pubDate>Wed, 26 Sep 2007 22:13:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5149109</guid><dc:creator>jannemattila</dc:creator><description>&lt;p&gt;Hi Robert!&lt;/p&gt;
&lt;p&gt;Since I couldn't give you simple answer I created a small post about my idea:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/jannemattila/archive/2007/09/26/adding-own-custom-web-service-to-sharepoint.aspx"&gt;http://blogs.msdn.com/jannemattila/archive/2007/09/26/adding-own-custom-web-service-to-sharepoint.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I hope it gives you starting point to continue.&lt;/p&gt;
&lt;p&gt;Anyways... Happy hacking!&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;
</description></item><item><title>From InfoPath to Database via Web Service</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#5666457</link><pubDate>Thu, 25 Oct 2007 15:09:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5666457</guid><dc:creator>Janne Mattila's blog</dc:creator><description>&lt;p&gt;I have been asked to build this kind of example sooooo many times that now I really need to write this&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#5667197</link><pubDate>Thu, 25 Oct 2007 15:39:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5667197</guid><dc:creator>Chaman</dc:creator><description>&lt;p&gt;Hi, I am trying to submit the form to a webservice from InfoPath2007 form. In Webservice I am accepting data as an object. I am facing an issue like the all data are comming as null. But when I tried to did it with InfoPath2003 I worked.&lt;/p&gt;
&lt;p&gt;I am wondering if there is any serialization issue or is there any other problem.&lt;/p&gt;
&lt;p&gt;Can anyone please help me out with this.&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#5667289</link><pubDate>Thu, 25 Oct 2007 15:45:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5667289</guid><dc:creator>jannemattila</dc:creator><description>&lt;p&gt;Hi Chaman!&lt;/p&gt;
&lt;p&gt;Checkout my new post:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/jannemattila/archive/2007/10/25/from-infopath-to-database-via-web-service.aspx"&gt;http://blogs.msdn.com/jannemattila/archive/2007/10/25/from-infopath-to-database-via-web-service.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think that will answer your question... I certainly hope so because that was the reason why I wrote it :-)&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#6698423</link><pubDate>Sat, 08 Dec 2007 03:15:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6698423</guid><dc:creator>Fcode</dc:creator><description>&lt;p&gt;Hi Mattila,&lt;/p&gt;
&lt;p&gt;Thanks for nice blog. Its really helpfult but you forgot to mention about the Trust level of the form. So&lt;/p&gt;
&lt;p&gt;The above example will not work until and unless you go to Tools-&amp;gt; Form Options-&amp;gt; Security and Trust and select Full Trust or Domain Trust level.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;FCode&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#6813236</link><pubDate>Thu, 20 Dec 2007 07:37:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6813236</guid><dc:creator>Arun Arya</dc:creator><description>&lt;p&gt;Excellent! Just what I needed. More tutorial like this please. Thank you very much&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#8093267</link><pubDate>Fri, 07 Mar 2008 13:29:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8093267</guid><dc:creator>Nilesh B</dc:creator><description>&lt;p&gt;will you explain hos to get data from database, insteaed of Hard coded value.&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#8325577</link><pubDate>Wed, 19 Mar 2008 16:07:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8325577</guid><dc:creator>JOSETELLAN</dc:creator><description>&lt;p&gt;Hi Mattila, this post is brilliant to understand how to connect sharepoint, webservices and infopath. great &amp;nbsp;great job!!!&lt;/p&gt;
&lt;p&gt;But i&amp;#180;ve a question for you. doing all steps you describe i have a successfully retrieve data from my web service by pressing previus view button but when i publish my form template in a sharepoint site, infopath says there is a problem connecting to data source and in the same dialog box also says somo rules could&amp;#180;t be applied.&lt;/p&gt;
&lt;p&gt;i don&amp;#180;t understand why the process run ok with previus view and not with sharepoint?&lt;/p&gt;
&lt;p&gt;any sugestions please?&lt;/p&gt;
&lt;p&gt;many thanks for doing the post. congrats. &lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#8419565</link><pubDate>Wed, 23 Apr 2008 21:19:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8419565</guid><dc:creator>P</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am new to Infopath and web services... but I tried following ur steps and got lost around the point of getting WSDL url...&lt;/p&gt;
&lt;p&gt;Can you explain how to reach that point?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#8842026</link><pubDate>Fri, 08 Aug 2008 03:51:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8842026</guid><dc:creator>Ryan</dc:creator><description>&lt;p&gt;Not sure if you're still responding to posts on this, but... I tried to follow this and another tutorial on writing a web service to receive an InfoPath submission. &amp;nbsp;It seems to work, but when the form is submitted, all the fields within the web service are null. &amp;nbsp;No data comes across. &amp;nbsp;If I submit the entire XML document as a string and set up the web service to receive a string, I can see that the data is included in the submission. &amp;nbsp;But it doesn't come across when I have an object (the class from Visual Studio's xsd.exe). &amp;nbsp;I think this may be the same issue Chaman had (and I reviewed your newer post to see if that fixed it. &amp;nbsp;Do you know why the fields would all be null? &amp;nbsp;I tried: adding the web service location to my trusted sites; modifying IE settings to allow cross-domain data; and publishing the form with Full trust.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#9420362</link><pubDate>Sat, 14 Feb 2009 02:55:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9420362</guid><dc:creator>AmberCF</dc:creator><description>&lt;p&gt;This was such a great example! &amp;nbsp;I'm mostly a VB programmer and I've never written a Web service until today. &amp;nbsp;You made it so easy, not to mention the integration with InfoPath.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#9427385</link><pubDate>Tue, 17 Feb 2009 13:23:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9427385</guid><dc:creator>Tito</dc:creator><description>&lt;p&gt;Thanks to the information, its very useful your tutorial, but I've a problem with my SharePoint enviroment, and I think If you could help me. I have a webService in other machine that I have SharePoint, and when I publish my infopath form the data conection between infopath and the other webservice machine it is imposible, the error is &amp;quot;Unknown Server&amp;quot;. And If I try to conect with this webservice, in the same server with asp.net application, without sharepoint It will connect succesfully. What Should I change in my sharepoint to conect my Infopath to a external webservice?, thanks a lot.&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#9616639</link><pubDate>Thu, 14 May 2009 20:32:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9616639</guid><dc:creator>JamesLiang</dc:creator><description>&lt;p&gt;although today is 2009, but your article still useful.&lt;/p&gt;
&lt;p&gt;thanks a lot.&lt;/p&gt;
</description></item><item><title>re: InfoPath and Web Service data connection</title><link>http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx#9922905</link><pubDate>Mon, 16 Nov 2009 12:19:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9922905</guid><dc:creator>Sarayu</dc:creator><description>&lt;p&gt;Amazing!!! Thank you very very very very very veryyyyyy much . I am quite new to webservices and was reading the tutorial. I am required to do the same job, u demonstrated above. Love u.&lt;/p&gt;
</description></item></channel></rss>