<?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: 401 - unauthoriz​ed error while connecting to web service</title><link>https://www.infopathdev.com:443/forums/thread/86722.aspx</link><pubDate>Mon, 04 Feb 2013 20:08:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86722</guid><dc:creator>Patrick119</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86722</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ve probably resolved this already, but if not...&lt;/p&gt;&lt;p&gt;I had similar issues. My issues were caused by inconsistencies in server-level configuration. This might help: &lt;a href="http://sharepointotoole.wordpress.com/2012/04/26/rodgers-discount-double-hop/"&gt;http://sharepointotoole.wordpress.com/2012/04/26/rodgers-discount-double-hop/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;...let me know if you have any follow up questions.&lt;/p&gt;&lt;p&gt;Patrick&lt;/p&gt;</description></item><item><title>Re: 401 - unauthoriz​ed error while connecting to web service</title><link>https://www.infopathdev.com:443/forums/thread/80979.aspx</link><pubDate>Wed, 25 Jul 2012 05:46:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80979</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80979.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=80979</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I would have checked that WebDAV is enabled on your server.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;Also, &lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,Segoe,&amp;#39;Helvetica Neue&amp;#39;,&amp;#39;Lucida Grande&amp;#39;,Arial,sans-serif;font-size:15px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:19px;orphans:2;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;float:none;"&gt;&lt;a href="http://sharepoint.stackexchange.com/a/33083/8319"&gt;InfoPath Form Services does not support claims based authentication (that&amp;#39;s what MS Support told us&lt;/a&gt;,&lt;/span&gt; as well as it is written in msdn article &lt;a href="http://msdn.microsoft.com/en-us/library/office/ff961895.aspx" rel="nofollow" style="margin:0px;padding:0px;border:0px none;font-size:15px;vertical-align:baseline;text-decoration:none;cursor:pointer;font-family:&amp;#39;Segoe UI&amp;#39;,Segoe,&amp;#39;Helvetica Neue&amp;#39;,&amp;#39;Lucida Grande&amp;#39;,Arial,sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:19px;orphans:2;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"&gt;Building SharePoint Applications with InfoPath 2010 (Part 2 of 2) (MSDN refresh)&lt;/a&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,Segoe,&amp;#39;Helvetica Neue&amp;#39;,&amp;#39;Lucida Grande&amp;#39;,Arial,sans-serif;font-size:15px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:19px;orphans:2;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;float:none;"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; in context of using GetUserProfileByName SOAP service:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp; &amp;quot;the web application that hosts this SharePoint application must be configured to use classic-mode authentication&amp;quot;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: 401 - unauthoriz​ed error while connecting to web service</title><link>https://www.infopathdev.com:443/forums/thread/79594.aspx</link><pubDate>Mon, 18 Jun 2012 11:22:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79594</guid><dc:creator>Kamal_Kochar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79594</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;My Self The Enemy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Are you using client or browser-based forms?&amp;nbsp;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;am using browser based forms.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;My Self The Enemy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;if you use browser forms, then through the web proxy service for Infopath Form Services accessing&amp;nbsp;while &amp;nbsp;a web service cross-domain. &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t understand it. Can you please tell, how can i achieve this?&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;My Self The Enemy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Are your stage servers on the same machine?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;If i got you right, below is what you are looking from me-&lt;/p&gt;
&lt;p&gt;Stage Environment - I have 1 WFE Server + 1 App Server + 1 DB Server (All different machines). But development environment also has the same server structure.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;My Self The Enemy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;What do you&amp;nbsp;mean &amp;nbsp;under the &amp;quot;One side&amp;quot; and the &amp;quot;other side&amp;quot;.&amp;nbsp;Your &amp;quot;other side&amp;quot; sounds to me like having no remote sides at all&amp;nbsp;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I really didn&amp;#39;t meant anything by sides. Sorry for the confusion.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;My Self The Enemy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; &amp;quot;Some&amp;quot; probably doesn&amp;#39;t connect at all but sees cached data.&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;I clear cache all the time. Anyhow it shouldn&amp;#39;t come in cache if someone never connected. 
&lt;p&gt;How can i resolve this if it is double hop authentication problem? Please help. 
&lt;p&gt;Many Thanks, 
&lt;p&gt;Kamal 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: 401 - unauthoriz​ed error while connecting to web service</title><link>https://www.infopathdev.com:443/forums/thread/79524.aspx</link><pubDate>Fri, 15 Jun 2012 03:16:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79524</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79524</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Kamal_Kochar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I have an InfoPath form published in a SharePoint list which is connecting to UserProfileService.asmx&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;Are you using client or browser-based forms?&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;You should use either client (Infopath Filler 2010) forms or, if you use browser forms, then through the web proxy service for Infopath Form Services accessing&amp;nbsp;while &amp;nbsp;a web service cross-domain. &lt;br /&gt;This is because Infopath browser-enabled forms communicate through stateless XMLHTTP protocol while Infopath client forms are using NTLM.&lt;br /&gt;So, with Infopath browser-based form you have classic double hop authentication problem when the data connections/sources are in different other machines 
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Kamal_Kochar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;It works fine in my stage server but when i moved it to development and production environment it gives me unauthorized 401 error while connecting to web service &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;Are your stage servers on the same machine?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Kamal_Kochar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;1. One side it is giving me &amp;#39;Unauthorized error&amp;#39;, but on other it works sometimes (with same browser, on same machine)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;What do you&amp;nbsp;mean &amp;nbsp;under the &amp;quot;One side&amp;quot; and the &amp;quot;other side&amp;quot;.&amp;nbsp;Your &amp;quot;other side&amp;quot; sounds to me like having no remote sides at all&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;it works sometimes (with same browser, on same machine)&amp;quot;&amp;nbsp;sounds like typical double hop authentication problem. &amp;nbsp;&lt;br /&gt;See my explanations above&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Kamal_Kochar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;This is driving me crazy because if some is unauthorized then how come he is able to connect sometimes.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Some&amp;quot; probably doesn&amp;#39;t connect at all but sees cached data.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Kamal_Kochar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;2. It works fine in preview mode in InfoPath but gives error after publishing it to SharePoint site&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;This is because preview mode (and client forms) is&amp;nbsp;connecting through&amp;nbsp;NTLM while run-time browser forms through XMLHTTP. &lt;br /&gt;The latter has double hop problem and the former does not.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Kamal_Kochar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;4. I have tried giving explicit credentials in my data connection file&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Once more, you should use the web proxy service while connecting to other servers (on other machines) from browser forms or connect from client (Infopath Filler 2010) to avoid double hop problem.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Kamal_Kochar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;Note &lt;/strong&gt;- I am using Windows Server 2008 R2 Standard edition and using NTLM authentication for my application&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;How&amp;nbsp;have you configured and checked this?&lt;br /&gt;You might want to use Wireshark or Fiddler to check authentication mechanism and how credentials are really passed&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Kamal_Kochar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I am getting this error while browsing from any machine i.e server and other local machines&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;This is not only you, Everybodу else&amp;nbsp;has the same issues and should configure their environment. &lt;br /&gt;See my explanations above&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: 401 - unauthoriz​ed error while connecting to web service</title><link>https://www.infopathdev.com:443/forums/thread/79435.aspx</link><pubDate>Wed, 13 Jun 2012 06:50:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79435</guid><dc:creator>Kamal_Kochar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79435.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79435</wfw:commentRss><description>&lt;p&gt;Thanks for the reply Patrick.&lt;/p&gt;
&lt;p&gt;I am not using Office 365/Sharepoint online. Yes it is a standard Sharepoint 2010 install. I am not using explicit credentials, though i tried using that once just to make myself sure that i not missing something very simple. Thanks for explaining the need for explicit credentials. I tried the same to connect my dev&amp;nbsp;infopath to connect to stage server web service and it works fine but it is not connecting to dev server web service.&lt;/p&gt;
&lt;p&gt;I am not aware of the the authentication types, just wrote it as part of my configuration settings&amp;nbsp;if there is something to relate with my error.&lt;/p&gt;
&lt;p&gt;Please suggest something, what could be the cause? I have also disbaled the loopback check.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kamal&lt;/p&gt;</description></item><item><title>Re: 401 - unauthoriz​ed error while connecting to web service</title><link>https://www.infopathdev.com:443/forums/thread/79393.aspx</link><pubDate>Mon, 11 Jun 2012 15:47:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79393</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79393</wfw:commentRss><description>&lt;p&gt;Hi Kamal,&lt;/p&gt;&lt;p&gt;UserProfileService doesn&amp;#39;t work for Office 365 / SharePoint Online, so my first question is whether you are using that or not?&lt;/p&gt;&lt;p&gt;If this is a standard SharePoint 2010 install, and you are using UDCX files, you shouldn&amp;#39;t have to give explicit credentials. So long as the connection is to the same site, it should work fine. If it&amp;#39;s cross-site, you will need explicit credentials or better yet, SSO config.&lt;/p&gt;&lt;p&gt;NTLM is relevant for InfoPath filler forms, but not for browser-based forms. &lt;/p&gt;</description></item><item><title>401 - unauthoriz​ed error while connecting to web service</title><link>https://www.infopathdev.com:443/forums/thread/79382.aspx</link><pubDate>Sat, 09 Jun 2012 19:18:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79382</guid><dc:creator>Kamal_Kochar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79382.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79382</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;&lt;p&gt;I have an InfoPath form published in a SharePoint list which is connecting to UserProfileService.asmx to auto populate some user properties. It works fine in my stage server but when i moved it to development and production environment it gives me unauthorized 401 error while connecting to web service -&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Error Log-&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;The following query failed: &lt;strong&gt;GetUserDetails&lt;/strong&gt; (User: domain\username, Form Name: Template, IP: , Connection Target: , Request:http://sitename/Lists/newlist/AllItems.aspx?View={88B0F3FB-4C19-4711-8A3C-491DEB51C5A0}, Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2012-05-26T10:48:21:36Z Type:DataAdapterException, Exception Message: The remote server returned an error&lt;strong&gt;:(401) Unauthorized&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;**GetUserDetails is the data connection created in InfoPath which is connecting to &lt;a href="http://app-domain/_vti_bin/userprofileservice.asmx"&gt;http://app-domain/_vti_bin/userprofileservice.asmx&lt;/a&gt; and using its GetUserProfileByName method.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Few strange observations-&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;1. One side it is giving me &amp;#39;Unauthorized error&amp;#39;, but on other it works sometimes (with same browser, on same machine). This is driving me crazy because if some is unauthorized then how come he is able to connect sometimes.&lt;br /&gt;2. It works fine in preview mode in InfoPath but gives error after publishing it to SharePoint site.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Few things that I ensured-&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;1. I updated the web service url in data connection file.&lt;br /&gt;2. Anonymous access is not enabled in central administration.&lt;br /&gt;3. App Pool Identity has invoke permissions for user profile service in central administration.&lt;br /&gt;4. I have tried giving explicit credentials in my data connection file.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Note &lt;/strong&gt;- I am using Windows Server 2008 R2 Standard edition and using NTLM authentication for my application.&lt;/p&gt;&lt;p&gt;Servers in Farm-&lt;/p&gt;&lt;p&gt;Stage - 1 WFE server + 1 App server - Works fine&lt;br /&gt;Devlopment - 1 WFE Server + 1 App Server - Getting Error&lt;br /&gt;Production - 3 WFE + 2 App Server + 1 index server - Getting Error&lt;/p&gt;&lt;p&gt;I am getting this error while browsing from any machine i.e server and other local machines. &lt;/p&gt;&lt;p&gt;Please suggest me something. Thanks.&lt;/p&gt;</description></item></channel></rss>