Help trying to get a serilized class of the GetUserCollectionFromGroup MOSS web service - InfoPath Dev
in

InfoPath Dev

Help trying to get a serilized class of the GetUserCollectionFromGroup MOSS web service

Last post 07-24-2007 10:57 AM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-24-2007 05:01 AM

    • buzzby
    • Top 200 Contributor
    • Joined on 07-11-2005
    • United Kingdom
    • Posts 60

    Help trying to get a serilized class of the GetUserCollectionFromGroup MOSS web service

    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

     

  • 07-24-2007 10:57 AM In reply to

    Re: Help trying to get a serilized class of the GetUserCollectionFromGroup MOSS web service

    The easiest way is to use InfoPath to connect to that Web Service. Once you do, it creates a sample .xml file as well as any required .xsd files. There should be no reason to do this by hand.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.