I have the following scenario.
I've created an InfoPath 2010 form in which I have a data connection to the UserGroup web service located at the following URL.
http://myserver/sites/subsite/subsite1
When I make a call to the method GetUserCollectionByGroup, nothing is returned. (I've made the changes to the xsd files as noted in this link http://www.hishamqaddomi.ca/spg/index.php/sharepoint-2010/infopath-2010/65-checking-if-a-user-is-a-member-in-a-sharepoint-group-within-web-infopath-2010-forms)
What seems to be happening is that the data connection is only returning users from groups located at the root -- http://myserver
I've also noticed that it seems to work the same way when I create a console application to consume the web service. However in the console app, I have the option of setting the URL then everything works fine. No way to do that in InfoPath as far as I'm aware. Anyyone have any ideas how I can get around this. I don't know of a way to set the URL in code behind of InfoPath in the Loading event.
Thanks in advance.