10. Select the “SOAP Web service” radio button. This should be the default value, but if it isn’t, select it.
11. Click the “Next” button.
12. Now enter the location of the target service to be consumed in the edit box. In our case, we are trying to consume the “UserProfileService.asmx” service which resides in the /_vti_bin/ virtual location off your current SharePoint site. Simply copy the site URL of your site and append “/_vti_bin/UserProfileService.asmx” to it. For example, if your site URL is http://www.crayveon.com/sites/SuperTeam/default.aspx, drop the page reference and append the above text to give you a value of http://www.crayveon.com/sites/SuperTeam/_vti_bin/UserProfileService.asmx which you enter into the edit box.
13. Click the “Next” button.
14. InfoPath will connect to the web service and display the list of valid operations.
15. Scroll down the list and locate the “GetUserProfileByName” operation and select it.
16. Click the “Next” button.