From the generated class defintion of Folder, it has a Folder1 property of
"nickname" <nick.name@newsgroups.nospam> wrote in message
news:1C039F86-892B-4BB7-920A-777598968BB6@microsoft.com...
> Thanks for replying. That is exactly what I get with the XSD tool. My
> issue
> is with using the following web service with a windows forms application:
> "[WebMethod]
> public bool test(Folder test)
> {
> return true;
> }"
> By creating a new windows forms project and adding a web reference to this
> service, I am unable to pass in a folder that contains multiple sub
> folders:
> "WebReference.Service wr = new WebReference.Service();
>
> WebReference.Folder Folder1 = new WebReference.Folder();"
> How would I create sub folders / documents?
>
> Thanks
>
>
> "Steven Cheng[MSFT]" wrote:
>
>> Hello Nick,
>>
>> According to the XML Schema you mentioned, I have performed some test on
>> my
>> local side. It seems the XSD tool will generate the following class
>> (through xsd.exe /classes schamefile). And the generated Folder class
>> contains a "Document" and a "Folder1" property. However, both of the two
>> properties are of Array type. So you can add multiple Documents and
>> Folders
>> instance as children of a Folder instance. This doesn't violate the XSD
>> schema you provided. Is this what you get in your test project also?
>>
>> ===================
>> public partial class Folder {
>>
>> private Folder[] folder1Field;
>>
>> private Document[] documentField;
>>
>> private string nameField;
>>
>> /// <remarks/>
>> [System.Xml.Serialization.XmlElementAttribute("Folder")]
>> public Folder[] Folder1 {
>> get {
>> return this.folder1Field;
>> }
>> set {
>> this.folder1Field = value;
>> }
>> }
>>
>> /// <remarks/>
>> [System.Xml.Serialization.XmlElementAttribute("Document")]
>> public Document[] Document {
>> get {
>> return this.documentField;
>> }
>> set {
>> this.documentField = value;
>> }
>> }
>>
>> /// <remarks/>
>> [System.Xml.Serialization.XmlAttributeAttribute()]
>> public string name {
>> get {
>> return this.nameField;
>> }
>> set {
>> this.nameField = value;
>> }
>> }
>> }
>>
>> ============================
>>
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>
>>
>>
>> ==================================================
>>
>> Get notification to my posts through email? Please refer to
>>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif >> ications.
>>
>>
>>
>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
>> issues
>> where an initial response from the community or a Microsoft Support
>> Engineer within 1 business day is acceptable. Please note that each
>> follow
>> up response may take approximately 2 business days as the support
>> professional working with you may need further investigation to reach the
>> most efficient resolution. The offering is not appropriate for situations
>> that require urgent, real-time or phone-based interactions or complex
>> project analysis and dump analysis issues. Issues of this nature are best
>> handled working with a dedicated Microsoft Support Engineer by contacting
>> Microsoft Customer Support Services (CSS) at
>>
http://msdn.microsoft.com/subscriptions/support/default.aspx. >>
>> ==================================================
>>
>>
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights