<?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: Include credentials in the SOAP Header?</title><link>https://www.infopathdev.com:443/forums/thread/82683.aspx</link><pubDate>Fri, 14 Sep 2012 16:38:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82683</guid><dc:creator>omatase</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82683.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=82683</wfw:commentRss><description>Is this still the best way to do this? I am using InfoPath 2010 and am having a hard time getting authentication passed in the SOAP header. I have created a Stack Overflow but I don&amp;#39;t think that I&amp;#39;ll get a lot of traffic on it.

Reading your code I am having a hard time determining what it&amp;#39;s doing. Does global::InfoPathProject2.MyWebService represent a &amp;quot;Web Reference&amp;quot;?</description></item><item><title>Re: Include credentials in the SOAP Header?</title><link>https://www.infopathdev.com:443/forums/thread/17959.aspx</link><pubDate>Mon, 12 Feb 2007 21:36:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17959</guid><dc:creator>pdjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17959.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17959</wfw:commentRss><description>Thanks Jim, I'll give this a try. Do you know if this is supported in InfoPath 2007 or if there are there any plans to add support for this in a later version? It seems like a pretty common thing (at least in the Web Services I've tried to use that require authentication) and having to build the web service request myself in Visual Studio in these cases requires a lot more work...&lt;br /&gt;&lt;br /&gt;Anyway, thanks again for your help.&lt;br /&gt;&lt;br /&gt;Paul</description></item><item><title>Re: Include credentials in the SOAP Header?</title><link>https://www.infopathdev.com:443/forums/thread/17958.aspx</link><pubDate>Sun, 11 Feb 2007 20:50:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17958</guid><dc:creator>jimbob</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17958</wfw:commentRss><description>InfoPath does not support accessing the headers, but you can add a web reference to your InfoPath form in Visual Studio and call within your form code.&lt;br /&gt;&lt;br /&gt;This is a sample using a webservice defined method with &lt;br /&gt;&lt;br /&gt;        MyWebService.Auth hdr = new global::InfoPathProject2.MyWebService.Auth();&lt;br /&gt;        hdr.Username = "Fred";&lt;br /&gt;        hdr.Password = "Barney";&lt;br /&gt;&lt;br /&gt;        MyWebService.AdminService svc = new global::InfoPathProject2.MyWebService.AdminService();&lt;br /&gt;        svc.AuthValue = hdr;&lt;br /&gt;        svc.Credentials = System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;        string data = svc.MyWebMethod();&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Include credentials in the SOAP Header?</title><link>https://www.infopathdev.com:443/forums/thread/17957.aspx</link><pubDate>Sun, 11 Feb 2007 00:36:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17957</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17957</wfw:commentRss><description>Hi PDJohnson!&lt;br /&gt;We should know the answer to this. I've asked Jim to respond.</description></item><item><title>Include credentials in the SOAP Header?</title><link>https://www.infopathdev.com:443/forums/thread/17580.aspx</link><pubDate>Wed, 07 Feb 2007 15:05:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17580</guid><dc:creator>pdjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17580.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17580</wfw:commentRss><description>Hi, I am trying to connect to a web service that requires me to pass the user's credentials in the SOAP Header as follows:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;soap:Header&amp;gt;&lt;br /&gt;&amp;lt;Auth xmlns="http://namespace.com"&amp;gt;&lt;br /&gt;&amp;lt;Username&amp;gt;username&amp;lt;/Username&amp;gt;&lt;br /&gt;&amp;lt;Password&amp;gt;password&amp;lt;/Password&amp;gt;&lt;br /&gt;&amp;lt;/Auth&amp;gt;&lt;br /&gt;&amp;lt;/soap:Header&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Is there any way to do this in InfoPath?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>