<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: WS in Primary datasource recover error message</title><link>https://www.infopathdev.com:443/forums/thread/14856.aspx</link><pubDate>Mon, 20 Nov 2006 17:58:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14856</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14856.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14856</wfw:commentRss><description>Great! Glad to hear you got it working!</description></item><item><title>Re: WS in Primary datasource recover error message</title><link>https://www.infopathdev.com:443/forums/thread/14855.aspx</link><pubDate>Mon, 20 Nov 2006 07:58:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14855</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14855.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14855</wfw:commentRss><description>Hi Greg,&lt;br /&gt;&lt;br /&gt;Thanks for your answer!&lt;br /&gt;&lt;br /&gt;I have choose the first solution and that work great!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: WS in Primary datasource recover error message</title><link>https://www.infopathdev.com:443/forums/thread/14854.aspx</link><pubDate>Wed, 15 Nov 2006 17:15:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14854</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14854.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14854</wfw:commentRss><description>It sounds like you have a Web service that returns a certain schema, but in the case of an error it returns a different schema. This is not possible.&lt;br /&gt;&lt;br /&gt;Two solutions:&lt;br /&gt;&lt;br /&gt;1. Create a combined schema for success and failure. That way no matter which XML you return, the schema will match.&lt;br /&gt;&lt;br /&gt;2. Use a try/catch block and if there is an error, query a different Web service to find out what the error was.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Solution 1 is probably the better choice.</description></item><item><title>Re: WS in Primary datasource recover error message</title><link>https://www.infopathdev.com:443/forums/thread/14853.aspx</link><pubDate>Tue, 14 Nov 2006 18:38:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14853</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14853</wfw:commentRss><description>Hi Thierry,&lt;br /&gt;Sorry for the delay. We have done this before. I've asked two of our developers to respond and you should have a reply soon. Thanks for your patience!</description></item><item><title>Re: WS in Primary datasource recover error message</title><link>https://www.infopathdev.com:443/forums/thread/14852.aspx</link><pubDate>Tue, 14 Nov 2006 15:11:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14852</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14852</wfw:commentRss><description>Anybody has an Idea ?&lt;br /&gt;&lt;br /&gt;The error message is : &lt;br /&gt; &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;{System.Runtime.InteropServices.COMException (0x80043032): The query method on the Document object failed.&lt;br /&gt;#65279;#65279;&lt;br /&gt;InfoPath cannot run the specified query.&lt;br /&gt;The element 'Succ' is used but not declared in the DTD/Schema.&lt;br /&gt;&lt;br /&gt;   à Microsoft.Office.Interop.InfoPath.SemiTrust._XDocument.Query()&lt;br /&gt;   à Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentWrapper.Query()&lt;br /&gt;   à HRGSearch.HRGSearch.Query_OnClick(DocActionEvent e) dans C:\Dev\Visual Studio Projects\HRGSearch\HRGSearch\FormCode.cs:ligne 591}&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 want to know if he send me back: &amp;lt;Succ nr="3"/&amp;gt; or &amp;lt;Error Nr="323"/&amp;gt;? the correct result is &amp;lt;CaseList&amp;gt;.....&amp;lt;/CaseList&amp;gt;.&lt;br /&gt;&lt;br /&gt;Thanks for your help&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: WS in Primary datasource recover error message</title><link>https://www.infopathdev.com:443/forums/thread/14851.aspx</link><pubDate>Tue, 31 Oct 2006 08:56:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14851</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14851</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;&lt;br /&gt;My problem is that If I return another xml that schema want I cant see it in my code. Infopath send his default error message and I dont know which methode or propertie I need to use for see this "error" xml:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;try&lt;br /&gt;            {&lt;br /&gt;&lt;br /&gt;                thisXDocument.Query();&lt;br /&gt;            }&lt;br /&gt;            catch (System.Runtime.InteropServices.COMException ex)&lt;br /&gt;            {&lt;br /&gt;                thisXDocument.UI.Alert("no data find!\n");// + ex.ToString());&lt;br /&gt;            }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;in ex I can't find my "error" xml. Do you know how can I do?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: WS in Primary datasource recover error message</title><link>https://www.infopathdev.com:443/forums/thread/14850.aspx</link><pubDate>Fri, 27 Oct 2006 18:27:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14850</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14850</wfw:commentRss><description>Yes, you can do this, but it requires the WS to return the XML.</description></item><item><title>WS in Primary datasource recover error message</title><link>https://www.infopathdev.com:443/forums/thread/12968.aspx</link><pubDate>Fri, 27 Oct 2006 09:46:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12968</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12968.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12968</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I want to know if it's possible to have the xml returned by the webservice when I do :&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;thisXDocument.Query();&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Because if that send me another XML that is waiting by Infopath that make me an error but I cant find this "invalid" xml.&lt;br /&gt;&lt;br /&gt;It's because this xml contain the error message that I want to recup for make a better message alert.&lt;br /&gt;&lt;br /&gt;I Know that I can catch the error with Try...catch but I cant see the xml return by my query ?&lt;br /&gt;&lt;br /&gt;Do you know how can I do?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Thierry</description></item></channel></rss>