I'm trying to use the SharePoint 2010 SOAP web services to get/update User information, which seems to work OK when the user comes from Active Directory, but not when trying to find a user in Forms Based Authentication (same for Groups vs. Roles).
The SOAP XML I use is this:
POST http://mySPserver/_vti_bin/usergroup.asmx HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/directory/GetUserInfo" Cookie: FedAuth=77u...; expires=Fri, 22-Jul-2011 02:05:20 GMT; path=/; HttpOnly User-Agent: Jakarta Commons-HttpClient/3.1 Host: xxxx.xxxx.com Content-Length: 368 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/"> <soapenv:Header/> <soapenv:Body> <dir:GetUserInfo> <dir:userLoginName>DOMAIN\user</dir:userLoginName> </dir:GetUserInfo> </soapenv:Body> </soapenv:Envelope> This works just fine, when specifing DOMAIN\user but if I change that line to
<dir:userLoginName>[email protected]</dir:userLoginName> I get a 500 Internal Server Error and <errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">User cannot be found.</errorstring>
Is there a trick to getting SOAP Web Services to work with FBA?