When creating an InfoPath form and hosting it on SharePoint Online or Office 365 you cannot get access to the GetUserProfileService. This is frustrating as you can get some great information for your form from the user profile service.
You can populate some of the logged in user's details by accessing the little known User Information List. You can not access quite the level of detail that the User Profile service publishes, but it is certainly better than nothing.
There is a complete post on how to do this on The SharePoint Agency's website.