I'm using this tutorial http://www.codeproject.com/Articles/331606/How-to-set-Current-User-Name-to-InfoPath-Person-Gr to insert the name of the current user in an infopath form. I got the connection to the web service but then it returns this:
InfoPath Impossibile verificare il nome utente. Verifica non consentita dalle impostazioni di sicurezza del modulo.
Error durante una llamada a la propiedad o método 'get-UserName'.
It seems that is a security problem but my user is OK. For example if I use a person picker I can get all the information clicking in the person picker. there is another method to get this feature?
UPDATE: I solved it thanks to the excellent people in this site, thanks John. What I did was to follow the instructions in this url: http://saadiyadad.blogspot.com.es/2012/04/user-information-within-infopath-forms.html
but I had to change some things in the rule number 1, I had to use the query field "Account" and not the "User Name". User name contains only the user name and the formula userName contains also the domain and anohter information, I suppose is a problem with the infopath and sharepoint versions.