<?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: Always returning the same result</title><link>https://www.infopathdev.com:443/forums/thread/17654.aspx</link><pubDate>Mon, 25 Jul 2005 08:30:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17654</guid><dc:creator>bobstery</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17654.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17654</wfw:commentRss><description>I have now fixed the problem. tgo you are right I stated that I inserted a row and then checked to see if it was a success or failure, however I should have stated that a row only gets inserted if the request is successful.&lt;br /&gt;&lt;br /&gt;I started a fresh infopath form and instead of using Submit and retrieve, I just used retrieve. &lt;br /&gt;&lt;br /&gt;Many Thanks for your replies.</description></item><item><title>Re: Always returning the same result</title><link>https://www.infopathdev.com:443/forums/thread/17653.aspx</link><pubDate>Fri, 22 Jul 2005 15:14:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17653</guid><dc:creator>tgo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17653.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17653</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by bobstery&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;I have a web service that inserts a row into the database and returns success or failure based on whether the row already exists in the Database. &lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;I was not refering your to post I was refering to what he had quoted.</description></item><item><title>Re: Always returning the same result</title><link>https://www.infopathdev.com:443/forums/thread/17652.aspx</link><pubDate>Thu, 21 Jul 2005 17:56:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17652</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17652.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17652</wfw:commentRss><description>I dint mean to insert another row, I just advised him to put insertNumberResult in the UI and check the result instead of using UI alert, so that it would be easy to debug/know the result.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Always returning the same result</title><link>https://www.infopathdev.com:443/forums/thread/17651.aspx</link><pubDate>Thu, 21 Jul 2005 15:11:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17651</guid><dc:creator>tgo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17651.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17651</wfw:commentRss><description>You say you insert a row and then check whether it exists? so wouldnt that find itself and then always return true?&lt;br /&gt;&lt;br /&gt;Unless that the insertNumberResult covers that and I just do not know about it you will need a separte query to check whether it exists.&lt;br /&gt;</description></item><item><title>Re: Always returning the same result</title><link>https://www.infopathdev.com:443/forums/thread/17650.aspx</link><pubDate>Wed, 20 Jul 2005 19:45:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17650</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17650.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17650</wfw:commentRss><description>hi bobstery,&lt;br /&gt;Where do you have this above statement after querying the webservice(probably you might have done this after querying the webservice, just a confirmation).&lt;br /&gt;Do one thing, put "("/dfs:myFields/dfs:dataFields/tns:insertNumberResponse/tns:insertNumberResult")" this field on the InfoPath UI and check what is the result in the UI.&lt;br /&gt;&lt;br /&gt;Or debug your webservice when you are calling the webservice method from the InfoPath, and see what output does that webservice return on success.&lt;br /&gt;&lt;br /&gt;Otherwise i see no reason for message being wrong.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Always returning the same result</title><link>https://www.infopathdev.com:443/forums/thread/17473.aspx</link><pubDate>Wed, 20 Jul 2005 11:02:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17473</guid><dc:creator>bobstery</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17473.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17473</wfw:commentRss><description>I have a web service that inserts a row into the database and returns success or failure based on whether the row already exists in the Database. When calling the following for the response of the web service :&lt;br /&gt;&lt;br /&gt;XDocument.UI.Alert(XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:insertNumberResponse/tns:insertNumberResult").text);&lt;br /&gt;&lt;br /&gt;I always get the same response as not entered in this case 0, even if the record is inserted.&lt;br /&gt;&lt;br /&gt;However if I call the webservice from my Web browser I can see the XML returned does give differing results, when successfully entering a new row.&lt;br /&gt;&lt;br /&gt;Any ideas? &lt;br /&gt;</description></item></channel></rss>