<?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: Credentials from InfoPath form to Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17787.aspx</link><pubDate>Mon, 09 Apr 2007 13:24:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17787</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17787</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;Just look at this link.This might help you&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=652&amp;SearchTerms=HTTP&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=652&amp;SearchTerms=HTTP&lt;/a&gt;,401&lt;br /&gt;</description></item><item><title>Re: Credentials from InfoPath form to Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17786.aspx</link><pubDate>Fri, 06 Apr 2007 15:22:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17786</guid><dc:creator>BanGotti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17786.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17786</wfw:commentRss><description>So what is the answer?&lt;br /&gt;I m' having the same problem, ending to an HTTP 401: Unauthorized error.</description></item><item><title>Re: Credentials from InfoPath form to Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17785.aspx</link><pubDate>Tue, 03 Jan 2006 16:32:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17785</guid><dc:creator>vankireddy99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17785</wfw:commentRss><description>Thanks Patrick&lt;br /&gt;&lt;br /&gt;Amar</description></item><item><title>Re: Credentials from InfoPath form to Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17784.aspx</link><pubDate>Tue, 03 Jan 2006 01:57:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17784</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17784.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17784</wfw:commentRss><description>Hi Amar,&lt;br /&gt;I will ask Jim to respond to this.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Credentials from InfoPath form to Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17783.aspx</link><pubDate>Fri, 30 Dec 2005 13:43:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17783</guid><dc:creator>vankireddy99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17783</wfw:commentRss><description>There is no Credentials property for Web Service Adapter. Can you please tell me is there any way to set the Default Credentials.&lt;br /&gt;&lt;br /&gt;THanks,&lt;br /&gt;Amar</description></item><item><title>Re: Credentials from InfoPath form to Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17782.aspx</link><pubDate>Wed, 23 Nov 2005 20:13:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17782</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17782</wfw:commentRss><description>its as you specified: use DefaultCredentials:&lt;br /&gt;&lt;br /&gt;oTSSAdapter.Credentials = CredentialCache.DefaultCredentials;&lt;br /&gt;&lt;br /&gt;Anders&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Credentials from InfoPath form to Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17500.aspx</link><pubDate>Wed, 23 Nov 2005 19:45:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17500</guid><dc:creator>vankireddy99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17500.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17500</wfw:commentRss><description>Is there any way to pass credentials to web service from InfoPath Code Behind file. Like we do from aspx page like this to pass credentials to web service. &lt;br /&gt;&lt;br /&gt;I am using Windows Integrated Authentication for Web Services.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;I know that we do like this from aspx page to pass credentials to web service.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;TimeSheet.TimeSheetService  tsService = new TimeSheet.TimeSheetService();&lt;br /&gt;tsService.PreAuthenticate =true;&lt;br /&gt;tsService.Credentials = ystem.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;&lt;br /&gt;dgTimeSheetDtls.DataSource = tsService.TimeSheetDetailsSearch( Convert.ToInt32(selectedYear), Convert.ToInt32(selectedMonth), selectedEmployeeNumber );&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;When we use web service adapter from InfoPath code behind code looks like  this. Here how should we pass credentials. &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;WebServiceAdapter2 oTSSAdapter =(WebServiceAdapter2) thisXDocument.DataAdapters["TimeSheetStatusSearch"];&lt;br /&gt;oTSSAdapter.Query();&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Because I already logged in to system using windows Authentication, credentials will be already present, but I am not sure how to pass these credentials to Web Service Adapter.&lt;br /&gt;&lt;br /&gt;Quick help is really appreciated.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Amar&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>