<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Recieve and submit data in a form</title><link>https://www.infopathdev.com:443/forums/thread/33626.aspx</link><pubDate>Wed, 29 Oct 2008 09:22:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33626</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33626.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=33626</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is data type conversion error. Can you give more details on what is the character in the position of ‘707&amp;#39;. Can you check once what are you sending the input value for it?&lt;/p&gt;</description></item><item><title>Recieve and submit data in a form</title><link>https://www.infopathdev.com:443/forums/thread/33550.aspx</link><pubDate>Mon, 27 Oct 2008 18:12:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33550</guid><dc:creator>guptasourav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33550.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=33550</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am using a web service which submits data into database and has complex type as an input parameter. It works fine.&lt;/p&gt;&lt;p&gt;Now I want to return some complex type data from the same web service. There is no option present to add a data connection to receive and submit data simultaneously. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;[WebMethod(MessageName=&amp;quot;Returns Application data&amp;quot;)]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ApplicationData SubmitSurvey(SurveyRequest newRequest, string creatorID)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return dataAccessObject.SubmitSurvey(newRequest, creatorID);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw e;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Still I tried making a data connection to recieve data from web service (which internally insert value to the database and return me the complex type). This is giving me an error:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;InfoPath cannot run the specified query.&lt;br /&gt;The SOAP response indicates that an error occurred:&lt;br /&gt;&lt;br /&gt;Server was unable to read request. ---&amp;gt; There is an error in XML document (1, 707). ---&amp;gt; String was not recognized as a valid DateTime.&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The code works fine if I use web service just to submit data i.e without a return type.&lt;/p&gt;&lt;p&gt;Please let me know if there is some other way to do so &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item></channel></rss>