<?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: Connecting to a REST webservice and force it to return XML instead of JSON</title><link>https://www.infopathdev.com:443/forums/thread/90737.aspx</link><pubDate>Mon, 17 Jun 2013 07:48:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90737</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90737.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90737</wfw:commentRss><description>&lt;p&gt;I think the header you actually want to change is the &lt;strong&gt;Accept:&lt;/strong&gt; header (Content-Type is a response header), and I&amp;#39;ve done a fair bit of searching, but it looks like InfoPath&amp;#39;s buit-in data connections&amp;nbsp;simply don&amp;#39;t provide a way to modify the headers, even if you use code. It appears that InfoPath sends an &amp;quot;Accept: */*&amp;quot; header with its requests, probably in an attempt to avoid excluding services that would work otherwise.&lt;/p&gt;&lt;p&gt;The only alternative I can think of on the InfoPath side is to manually construct an HTTP request in code and then place the response into one of your data sources.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Is this web service something that you or someone at your organization might be able to modify? If so, perhaps you could add a parameter to indicate the type of response type you want (and default to JSON so you don&amp;#39;t break any existing clients).&lt;/p&gt;</description></item><item><title>Connecting to a REST webservice and force it to return XML instead of JSON</title><link>https://www.infopathdev.com:443/forums/thread/90433.aspx</link><pubDate>Wed, 05 Jun 2013 13:44:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90433</guid><dc:creator>ejw179</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90433.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90433</wfw:commentRss><description>Hey!

I have a webservice that by default returns JSON, i need to add &amp;quot;content-type: application/xml&amp;quot; to the header of my request to force it to return XML to infopath.  Any tips?</description></item></channel></rss>