Hi
I have found the following XML on the net that is supposed to represent the XML return from the web service. I am trying to create a c# class using the XSD.exe tool but it errors with the following error
Error: There was an error processing 'C:\InfoPathUserListDummyData.xml'.
- The same table (GetUserCollectionFromSite) cannot be the child table in two
nested relations.
Also is there a way of getting sample xml return data from a web service?
here is the XML code i have found that represents the web service call
<?xml version="1.0" encoding="utf-8" ?>
<dfs:myFields xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:s0="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-03-16T06-17-54" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<dfs:queryFields>
<s0:GetUserCollectionFromSite>
</s0:GetUserCollectionFromSite>
</dfs:queryFields>
<dfs:dataFields>
<GetUserCollectionFromSiteResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/">
<GetUserCollectionFromSiteResult>
<GetUserCollectionFromSite>
<Users>
<User ID="1" Sid="S-1-5-21-3593225548-2099380924-3969701235-500" Name="User1" LoginName="login1" Email="[email protected]" Notes="" IsSiteAdmin="False" IsDomainGroup="False"/>
<User ID="2" Sid="S-1-5-21-3593225548-2099380924-3969701235-1145" Name="User2" LoginName="login2" Email="[email protected]" Notes="" IsSiteAdmin="False" IsDomainGroup="False"/>
</Users>
</GetUserCollectionFromSite>
</GetUserCollectionFromSiteResult>
</GetUserCollectionFromSiteResponse>
</dfs:dataFields>
</dfs:myFields>
Thanks in advance