<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Submitting/receiving data to SQL 2005 via web services</title><link>https://www.infopathdev.com:443/forums/thread/48287.aspx</link><pubDate>Tue, 27 Oct 2009 18:58:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48287</guid><dc:creator>tyampoo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48287.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=48287</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;here is my db:&lt;/p&gt;
&lt;p&gt;TravelRequest (TravelRequestId, TravelDate, Requester, PhoneNumber, ReasonForTravel, Approved, Approver, ApprovalDate)&lt;br /&gt;Traveller (TravellerId, TravelRequestId, Name, DateOfBirth)&lt;br /&gt;CarRentalInfo(CarRentalInfoId, TravelRequestId, PickupDate, ReturnDate, VehicleTypeId)&lt;br /&gt;VehicleTypes(VehicalTypeId, Description)&lt;/p&gt;
&lt;p&gt;I have defined class for each table with columns as attributes and a empty constructor.&lt;br /&gt;I have added Traveller and CarRentalInfo as a list of objects in TravelRequest&lt;/p&gt;
&lt;p&gt;I am trying to read/submit date to the database via web service written in C#.&lt;/p&gt;
&lt;p&gt;Problem:&lt;br /&gt;CarRentalInfo is optional and&amp;nbsp;TravelRequestId is set as an identity in database. But InfoPath 2007 treats all non-string value as &amp;quot;required&amp;quot; fields and cannot submit data. Also I do not have any field listed under queryFields--&amp;gt;tns:GetAllTravelRequest.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;where and what am i missing?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i tried posting my problem here &lt;a href="http://www.infopathdev.com/forums/t/13594.aspx"&gt;http://www.infopathdev.com/forums/t/13594.aspx&lt;/a&gt;; but think it was a wrong place (?).&lt;/p&gt;
&lt;p&gt;Any direction, help is appreciated.&lt;br /&gt;Thank you for you time,&lt;/p&gt;</description></item><item><title>Re: Creating web service from sql server 2005</title><link>https://www.infopathdev.com:443/forums/thread/48286.aspx</link><pubDate>Tue, 27 Oct 2009 17:50:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48286</guid><dc:creator>tyampoo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48286.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=48286</wfw:commentRss><description>&lt;p&gt;I see this behavor: all fields that i did type casting in C# (which are not string) are treated as required fields in infoPath 2007. Is this true? If so, how would I have optional fields? Say StartDate for example!&lt;/p&gt;</description></item><item><title>Re: Creating web service from sql server 2005</title><link>https://www.infopathdev.com:443/forums/thread/48285.aspx</link><pubDate>Tue, 27 Oct 2009 17:40:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48285</guid><dc:creator>tyampoo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48285.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=48285</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I create a web service using C# to try with based on example given in (&lt;a href="http://weblog.vb-tech.com/nick/archive/2007/01/12/2088.aspx"&gt;http://weblog.vb-tech.com/nick/archive/2007/01/12/2088.aspx&lt;/a&gt;). Now my problem is i don&amp;#39;t know how InfoPath&amp;nbsp;decides&amp;nbsp;which fields are required and which are not. There are fields which are required in database but infopath do not recongnize that but it treats some fields as&amp;nbsp;required fields.&amp;nbsp;What am i missing?&lt;/p&gt;
&lt;p&gt;Thank you,&amp;nbsp;&lt;/p&gt;</description></item><item><title>Creating web service from sql server 2005</title><link>https://www.infopathdev.com:443/forums/thread/48187.aspx</link><pubDate>Sat, 24 Oct 2009 00:45:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48187</guid><dc:creator>tyampoo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48187.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=48187</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i am not sure if this subject fits here but i am developing a infopath form. I recently learnt that sql server 2005 can create a web service and i was thinking to learn coding for creating a web service in C#. &lt;/p&gt;
&lt;p&gt;Table 1 {Id, col1, col2}; Table 2 {Id, refToCol1, col2} in other word, table 1 is master and table 2 is child. How would i represent this schema in web services so that i can create infopath form based on it. &lt;/p&gt;
&lt;p&gt;any idea or direction is appreciated.&lt;/p&gt;
&lt;p&gt;thank you,&lt;/p&gt;
&lt;p&gt;(How would I see posts that i made in the past?)&lt;/p&gt;</description></item></channel></rss>