Using: InfoPath 2003, SharePoint 2007 WSS
I've tried Googling the problem and got nothing helpful, and this is my first time trying to use a web service to connect InfoPath and SharePoint, so bear with me.
I'm trying to use one of the OOB web services to access the list of users in SharePoint from an InfoPath form. I started by following an approximation of the steps found here: http://sharepointmagazine.net/articles/a-humble-tribute-to-the-leave-form-part-5
The difference is that instead of getting the name of the current SharePoint user, I want to get the total list of users. So, I thought the UserGroup web service with the GetUserCollection function would be the way to go.
However, on the screen in the Data Connection wizard that says "Set Sample Value," I can't seem to figure out what counts as valid data for tns:userLoginNamesXml, which is the only parameter.
Please help me figure out what to enter - or if there's another approach I should be taking. I tried entering a username but I don't think that even makes any sense. The data type field for the parameter is blank and read-only. I'm assuming it's some kind of SharePoint-specific data type? Maybe?
Main error: "InfoPath was unable to create a schema from the results of the Web service call."
Details: "The SOAP response indicates that an error occurred on the server:
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. Data at the root level is invalid. Line 1, position 1."