<?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: Return Value From Web Service</title><link>https://www.infopathdev.com:443/forums/thread/40016.aspx</link><pubDate>Thu, 26 Mar 2009 11:21:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40016</guid><dc:creator>Vedran</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40016.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=40016</wfw:commentRss><description>&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;InfoPath by default doesn&amp;#39;t care about any return values from submit action. It looks at HTTP response code and determents if action is successful or not.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;You should invoke submit from code in InfoPath and there do something with your return value form webservice.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;</description></item><item><title>Re: Return Value From Web Service</title><link>https://www.infopathdev.com:443/forums/thread/30080.aspx</link><pubDate>Thu, 03 Jul 2008 15:39:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30080</guid><dc:creator>tripleGun</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30080.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=30080</wfw:commentRss><description>&lt;p&gt;I still can&amp;#39;t get this to work right.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;As of now I can use a receive connection to properly get back my value from my web service but now the problem is I can&amp;#39;t query the same form by that value for edits.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is all I want to do&lt;/p&gt;&amp;nbsp;Recieve goes to a web service routine like this:&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;[&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;WebMethod&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;]&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;InfoPathReport&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; GetReport(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ReportNumber)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;InfoPathReport&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oReport = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;InfoPathReport&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(ReportNumber);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oReport;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Submit goes to this&lt;/p&gt;&lt;font size="2"&gt;[&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;WebMethod&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;]&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SaveInfoPathReport(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;InfoPathReport&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oReport)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;oReport.SaveReport();&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;return oReport.ReportNumber.ToString(); //returns the newly generated report number&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;why is this such a hard thing to do? It shouldn&amp;#39;t be. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want my users to be able to fill out a new report, submit it, get a report number back and maybe save it to their pc if they want.&lt;/p&gt;
&lt;p&gt;I want my admin to be able to see that a user filled out a report, query it by the reportnumber, make some changes, and submit the form back. This should not be this difficult. Can you please help? Thank you!&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Return Value From Web Service</title><link>https://www.infopathdev.com:443/forums/thread/29900.aspx</link><pubDate>Sat, 28 Jun 2008 05:27:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29900</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29900.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=29900</wfw:commentRss><description>&lt;p&gt;I have done this with the Qdabra web services.&lt;/p&gt;
&lt;p&gt;To get the return value it must be setup as a receive connection and submit via code.&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;</description></item><item><title>Return Value From Web Service</title><link>https://www.infopathdev.com:443/forums/thread/29892.aspx</link><pubDate>Fri, 27 Jun 2008 19:51:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29892</guid><dc:creator>tripleGun</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29892.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=29892</wfw:commentRss><description>&lt;p&gt;Hello all!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Ok, this seems like a pretty common question asked around this forum but none of the solutions for other people have been working for me. I am SO CLOSE to having this work but still no cigar. Here is what I want to do:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Submit a&amp;nbsp;complex datatype to a webservice and&amp;nbsp;return a newly generated report number back to the InfoPath Form from the web service.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Right now I have a secondary datasource that does this great! the ONLY problem is that when I try to save the form to my hard drive (to submit at a later date) the data is gone when i open it up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried the webServiceAdapter2 and outputlocation (couldn&amp;#39;t get it to work for me)&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried the Send and Recieve(didn&amp;#39;t work for me)&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried the Recieve and just submitted that, and this did work except for the whole saving the form data for later thing. Please help! &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>