<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Making InfoPath XML data source scrape data from a web part page</title><link>https://www.infopathdev.com:443/forums/thread/84928.aspx</link><pubDate>Fri, 30 Nov 2012 09:54:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84928</guid><dc:creator>saurabh.dasgupta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84928.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84928</wfw:commentRss><description>&lt;p&gt;I might have solved this. When I try to establish a data connection to&amp;nbsp; a /someservre/sites/site100/folder001/SomePage.aspx on SharePoint, InfoPath 2007 tries to determine some meta-data by calling the older RPC methods. Now, strangely InfoPath comes to the conclusion that this page is a document that might have been cached on the local disk and issues a request with the HEAD protocol. The response of this request has content with zero bytes and hence the error message &amp;quot;Illegal ..&amp;quot;&lt;/p&gt;
&lt;p&gt;To solve this,&amp;nbsp;I&amp;nbsp;suffixed a query parameter at the end of the&amp;nbsp;URL.&amp;nbsp;/someservre/sites/site100/folder001/SomePage.aspx?junk=100 and this worked magically!&lt;/p&gt;
&lt;p&gt;A day of efforts lost. But, atleast I found a way out. I have not done a detailed dissection of what else is going on. I will press on with my actual work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Making InfoPath XML data source scrape data from a web part page</title><link>https://www.infopathdev.com:443/forums/thread/84924.aspx</link><pubDate>Fri, 30 Nov 2012 08:48:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84924</guid><dc:creator>saurabh.dasgupta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84924</wfw:commentRss><description>&lt;p&gt;I am now comparing the fiddler response on a sample InfoPath form which reads off a web page on SP 2007 and also my page on SP 2010. I do see a difference in the headers.&lt;/p&gt;</description></item><item><title>Re: Making InfoPath XML data source scrape data from a web part page</title><link>https://www.infopathdev.com:443/forums/thread/84923.aspx</link><pubDate>Fri, 30 Nov 2012 08:47:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84923</guid><dc:creator>saurabh.dasgupta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84923.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84923</wfw:commentRss><description>&lt;p&gt;Hell Patrick,&lt;/p&gt;
&lt;p&gt;I tried this, but no luck. What surprises me is that I followed a similar approach in for another InfoPath which was scraping off a SP 2007 web page that had a SPDatasource in it and there was never a problem at all.I just ensured that the data from that page was a well formed XML.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;The code in the SharePoint page looks like this: &lt;pre&gt;&amp;lt;%@ Page Inherits=&amp;quot;Microsoft.SharePoint.WebPartPages.WebPartPage&amp;quot; ContentType=&amp;quot;text/xml&amp;quot; ResponseEncoding=&amp;quot;utf-8&amp;quot; %&amp;gt;
&amp;lt;%@ Register Tagprefix=&amp;quot;WebPartPages&amp;quot;
    Assembly=&amp;quot;Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&amp;quot;
    Namespace=&amp;quot;Microsoft.SharePoint.WebPartPages&amp;quot; %&amp;gt;&amp;lt;WebPartPages:SPUserCodeWebPart FrameType=&amp;quot;None&amp;quot;
    SuppressWebPartChrome=&amp;quot;True&amp;quot;  runat=&amp;quot;server&amp;quot;   AssemblyFullName=&amp;quot;IDSWebParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=11e3ded9dc4537f1&amp;quot; SolutionId=&amp;quot;83abfeb7-4747-4aca-9822-bee1a0e2b32c&amp;quot; ID=&amp;quot;g_c96983fc_c9b5_409d_b39a_93c431b85927&amp;quot; TypeFullName=&amp;quot;IDSWebParts.ExtractInfo.ExtractInfo&amp;quot;  WebPart=&amp;quot;true&amp;quot;  &amp;gt;&amp;lt;Properties&amp;gt;
&amp;lt;WebPartPages:SPUserCodeProperty Name=&amp;quot;CountryRegionMappingListName&amp;quot; Value=&amp;quot;CountryRegion&amp;quot;&amp;gt;&amp;lt;/WebPartPages:SPUserCodeProperty&amp;gt;
&amp;lt;/Properties&amp;gt;
&amp;lt;/WebPartPages:SPUserCodeWebPart&amp;gt;
&lt;/pre&gt;The code within the web part is something like this: &lt;pre&gt; 

        {
            string login = &amp;quot;&amp;quot;;
            string username = &amp;quot;&amp;quot;;
            string citycode = &amp;quot;&amp;quot;;
            string regioncode = &amp;quot;&amp;quot;;
            string message = &amp;quot;&amp;quot;;
            try
            {
                GetInfo(out login, out username, out citycode, out regioncode);
                writer.Write(&amp;quot;&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; encoding=\&amp;quot;utf-8\&amp;quot;?&amp;gt;&amp;quot;);
                message = string.Format(&amp;quot;&amp;lt;data&amp;gt;userdata,{0},{1},{2},{3},{4}&amp;lt;/data&amp;gt;&amp;quot;, login, username, citycode, regioncode,DateTime.Now.ToLongTimeString());
                writer.Write(message);
            }
            catch (Exception ex)
            {
                message = ex.ToString();
                writer.Write(message);
            }           
        }

&lt;/pre&gt;</description></item><item><title>Re: Making InfoPath XML data source scrape data from a web part page</title><link>https://www.infopathdev.com:443/forums/thread/84917.aspx</link><pubDate>Fri, 30 Nov 2012 00:02:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84917</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84917</wfw:commentRss><description>&lt;p&gt;Do you have the following line at the beginning?&lt;/p&gt;&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/p&gt;</description></item><item><title>Making InfoPath XML data source scrape data from a web part page</title><link>https://www.infopathdev.com:443/forums/thread/84906.aspx</link><pubDate>Thu, 29 Nov 2012 19:20:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84906</guid><dc:creator>saurabh.dasgupta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84906.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84906</wfw:commentRss><description>Hi all, &lt;br /&gt;I have a custom Sand box web part on a page which emits some information. The objective is to read this data using a XML file data connection from within InfoPath. This is IP 2007 in client mode. The data emitted by the web part is as simple as &lt;pre&gt;&amp;lt;data&amp;gt;some text&amp;lt;/data&amp;gt;&lt;/pre&gt;While browsing the web part page through IE the emitted data is correctly interpreted as XML. &lt;br /&gt;However, InfoPath will not let me create a data connection to this URL. &lt;br /&gt;The error message is &lt;pre&gt;The file is not a valid XML document. 

Illegal qualified name character. Line 1, Position 2 
&lt;/pre&gt;&lt;br /&gt;Any clues? I know my information here is sparse. Thanks in advance.</description></item></channel></rss>