<?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: Help sought in using the UserProfileService web service from an InfoPath browser based form</title><link>https://www.infopathdev.com:443/forums/thread/43306.aspx</link><pubDate>Mon, 22 Jun 2009 16:32:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43306</guid><dc:creator>mjm917</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=43306</wfw:commentRss><description>&lt;p&gt;You are AWESOME! Thanks for putting this together. My problem was trying to set/change the AccountName parameter of the UserProfileService web service.&lt;/p&gt;</description></item><item><title>Re: Help sought in using the UserProfileService web service from an InfoPath browser based form</title><link>https://www.infopathdev.com:443/forums/thread/43252.aspx</link><pubDate>Sun, 21 Jun 2009 06:32:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43252</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43252.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=43252</wfw:commentRss><description>&lt;p&gt;Ok, here&amp;#39;s the blog entry I promised:&lt;/p&gt;
&lt;p&gt;&lt;a title="Permanent Link to InfoPath – Get the current user without writing code&amp;nbsp;(extended)" href="http://claytoncobb.wordpress.com/2009/06/21/userprofileservice-extended/" rel="bookmark"&gt;&lt;font color="#536d88"&gt;InfoPath – Get the current user without writing code&amp;nbsp;(extended)&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Help sought in using the UserProfileService web service from an InfoPath browser based form</title><link>https://www.infopathdev.com:443/forums/thread/43176.aspx</link><pubDate>Fri, 19 Jun 2009 03:02:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43176</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=43176</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;mjm917:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I am trying to do the same thing. For whatever reason I am confused by your postso I was wondering if you could post a sample form that I could look at. Thanks in advance.&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;I am going to do a full blog entry showing the steps in detail, but that won&amp;#39;t happen overnight (probably over the weekend).&amp;nbsp; In the meantime, if you tell me which part you can&amp;#39;t follow, then I can try to walk you through it.&lt;/p&gt;</description></item><item><title>Re: Help sought in using the UserProfileService web service from an InfoPath browser based form</title><link>https://www.infopathdev.com:443/forums/thread/43159.aspx</link><pubDate>Thu, 18 Jun 2009 20:06:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43159</guid><dc:creator>mjm917</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=43159</wfw:commentRss><description>&lt;p&gt;I am trying to do the same thing. For whatever reason I am confused by your postso I was wondering if you could post a sample form that I could look at. Thanks in advance.&lt;/p&gt;</description></item><item><title>Re: Help sought in using the UserProfileService web service from an InfoPath browser based form</title><link>https://www.infopathdev.com:443/forums/thread/42883.aspx</link><pubDate>Fri, 12 Jun 2009 19:45:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42883</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42883.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=42883</wfw:commentRss><description>&lt;p&gt;Yes, you can do this, and I think it&amp;#39;s pretty simple.&lt;/p&gt;
&lt;p&gt;what you first have to realize is that when you create a data connection using this web service, you set it to default to the logged-in user and query automatically upon opening.&amp;nbsp; what you&amp;#39;re doing is sending the current user&amp;#39;s username (same value as &lt;em&gt;userName()&lt;/em&gt;) as the query parameter for the GetProfileByName web method.&amp;nbsp; It then returns a large data set of attributes for that user as defined in the Profile Database of your SSP.&amp;nbsp; In order to retrieve the same data for another user, you simply have to set up another query to the same web method using a different username.&amp;nbsp; A simple way to accomplish this:&lt;/p&gt;
&lt;p&gt;1) Create a custom button on your canvas set to &amp;quot;Rules and Custom Code.&amp;quot;&lt;/p&gt;
&lt;p&gt;2) Create a Rule for &amp;quot;Set field&amp;#39;s value to&amp;quot; on the QUERY node of the GetProfileByName data connection that populates from the username field you&amp;#39;re using.&amp;nbsp; This basically sends the username of your choice (whatever is currently in that field) to the query parameter field of the web service.&lt;/p&gt;
&lt;p&gt;3) Create a Rule for &amp;quot;Query data connection&amp;quot; and choose the GetProfileByName DC.&amp;nbsp; This will query the web service using the new username you gave it above&lt;/p&gt;
&lt;p&gt;4) Either using rules or default values, have it populate your other fields automatically with the new data set.&lt;/p&gt;
&lt;p&gt;Using a button lets you define WHEN the data gets populated instead of it auto-populating upon opening the form.&amp;nbsp; The only thing you have to figure out is how to get people&amp;#39;s usernames for use in that username box.&amp;nbsp; One possibility is to have a custom contacts list that has people&amp;#39;s full names in one column and username in another column.&amp;nbsp; Then, you can create a data connection to it, change your username control to a dropdown, set the dropdown to that new DC, set the display name to the full name column, and set the Value to the username column.&amp;nbsp; Then, people have a user-friendly way of choosing a colleague&amp;#39;s real name followed by pushing a button to get that colleague&amp;#39;s attributes.&amp;nbsp; Depending on your requirements, you can do several things here.&lt;/p&gt;</description></item><item><title>Re: Help sought in using the UserProfileService web service from an InfoPath browser based form</title><link>https://www.infopathdev.com:443/forums/thread/42121.aspx</link><pubDate>Wed, 27 May 2009 06:58:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42121</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42121.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=42121</wfw:commentRss><description>&lt;p&gt;Hi LVirden and welcome,&lt;/p&gt;
&lt;p&gt;Not sure how to do that. I want to say it can&amp;#39;t be done based on some very old info in my head, but I&amp;#39;m not sure. One thing that is sure is that our ultra cheap Active Directory Web Service does support this scenario and we have numerous blogs written on how to do it. You can even get manager information and the tool comes with one hour of free InfoPath MVP support. Holy Sheepdip Sherlock...&lt;/p&gt;</description></item><item><title>Help sought in using the UserProfileService web service from an InfoPath browser based form</title><link>https://www.infopathdev.com:443/forums/thread/41958.aspx</link><pubDate>Fri, 22 May 2009 13:58:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41958</guid><dc:creator>Larry W. Virden</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=41958</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve been testing&amp;nbsp;a technique I found on several web sites&amp;nbsp;of&amp;nbsp;accessing the UserProfileService web service, with the GetUserProfileByName method, to obtain information about the current user without having to write any C#, etc. code. &lt;/p&gt;
&lt;p&gt;I can get information about myself into an InfoPath text field okay.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have a slightly different scenario with which I need help. &lt;br /&gt;
&lt;p&gt;When the form is created new, I want to populate fields with the current user&amp;#39;s account name, Preferred Name, Department, and email address. This I can do, placing the results into text fields.&lt;br /&gt;
&lt;p&gt;What I want the&amp;nbsp;form to be able to do, however, is to allow the user to replace his/her own current account name in&amp;nbsp;one of the text boxes&amp;nbsp;with the name of someone &lt;br /&gt;else&amp;#39;s account, take some action (button press, etc.), and have InfoPath retrieve that person&amp;#39;s profile and place their information &lt;br /&gt;into the fields. &lt;br /&gt;
&lt;p&gt;Of course, once the form is saved, subsequent opening by someone should NOT replace the form data with that user&amp;#39;s information. &lt;br /&gt;
&lt;p&gt;Is this doable? How do I pass along an account name as an argument to the GetUserProfileByName methods? &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;</description></item></channel></rss>