I am attemtpting to get a users name and email address using the GetProfieUserByName as described here
When I publish the form and access it from SharePoint, it works fine. When I preview the form from within Infopath 2010, I get the error
"The SOAP response indicates that an error occurred on the server:
Server was unable to process request. ---> Attempted to perform an unauthorized operation.
. I have a siilar form created in InfoPath 2007 that works fine in previewl.