<?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: GetUserprofilebyName operation of the web service</title><link>https://www.infopathdev.com:443/forums/thread/43537.aspx</link><pubDate>Sat, 27 Jun 2009 15:37:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43537</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=43537</wfw:commentRss><description>&lt;p&gt;To begin with, you don&amp;#39;t need to use that web service to get the username.&amp;nbsp; You just use the function &lt;em&gt;userName() &lt;/em&gt;and use a rule or default value to put it in your text field.&amp;nbsp; This will return the username of the current user and can surely be used for hiding parts of your form or for switching views.&amp;nbsp; You can then use that username to get additional profile info about that person or other people if you send that username to the web service as a query parameter.&amp;nbsp; Refer to my blog entry for assistance: &lt;a title="Permanent Link to InfoPath – Get user information 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 user information without writing code&amp;nbsp;(extended)&lt;/font&gt;&lt;/a&gt;.&amp;nbsp; Also, there are several other threads close to the top that talk about this web service in case you want to peruse.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>GetUserprofilebyName operation of the web service</title><link>https://www.infopathdev.com:443/forums/thread/43536.aspx</link><pubDate>Sat, 27 Jun 2009 15:11:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43536</guid><dc:creator>bonagad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=43536</wfw:commentRss><description>&lt;p&gt;Hello friends, I wish to recover through my InfoPath form the name or the account of the user who opened the form in SharePoint. I want to thus use this parameter in order to configure the change of views of the form according to the user who opens this form around a flow of work. I had already to pose this problem and I had like answer to create a connection of data of reception of the Web service&amp;nbsp;in order to choose the GetUserprofilebyName operation. Thing which I had to make successfully. &lt;/p&gt;
&lt;div style="PADDING-RIGHT:0.6em;PADDING-LEFT:0.6em;PADDING-BOTTOM:0.6em;PADDING-TOP:0.6em;"&gt;Then to test so indeed this connection of data the name of the user recovers, I decided to create a button and a zone of text in my model free form so that by defining a rule on the button “ok” I can recover and post the name or the account of the user who opened the form in SharePoint, in the zone of text&lt;/div&gt;
&lt;div style="PADDING-RIGHT:0.6em;PADDING-LEFT:0.6em;PADDING-BOTTOM:0.6em;PADDING-TOP:0.6em;"&gt;so i create a ruleon the button to retreive the account name in the textbox. i do this method but on don&amp;#39;t have&amp;nbsp; a satisfy result.please i beg your pardon to help me. thank&lt;/div&gt;
&lt;div style="PADDING-RIGHT:0.6em;PADDING-LEFT:0.6em;PADDING-BOTTOM:0.6em;PADDING-TOP:0.6em;"&gt;cordially.&lt;br /&gt;&lt;/div&gt;</description></item></channel></rss>