<?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: Call webservice from infopath formcode problem</title><link>https://www.infopathdev.com:443/forums/thread/17891.aspx</link><pubDate>Fri, 28 Jul 2006 14:42:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17891</guid><dc:creator>fredarwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17891.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17891</wfw:commentRss><description>Try passing credentials to ur ws.&lt;br /&gt;&lt;br /&gt;ws2.Credentials= System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Call webservice from infopath formcode problem</title><link>https://www.infopathdev.com:443/forums/thread/17549.aspx</link><pubDate>Tue, 11 Jul 2006 09:52:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17549</guid><dc:creator>Krispi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17549.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17549</wfw:commentRss><description>Hello&lt;br /&gt;&lt;br /&gt;I'm trying to call a webservice from the formcode.cs file of my infopath form. The infopath is published (fully trusted) to a sharepoint library. When the code executes the call to the webservice I get an unauthorized exception. This exception only fires when I call this webservice in my formcode, if I call the same webservice throught the infopath datasource there is no problem.&lt;br /&gt;&lt;br /&gt;Any ideas? It's most likely that I have to pass user credentials but how?&lt;br /&gt;&lt;br /&gt;greets</description></item></channel></rss>