XML Snippet: Model of a Web Method That Returns a Complex Parameter
Applies to: SharePoint Server 2010
The following example shows how you can model a Web method that returns a complex parameter named Address.
Example
<Parameter Direction="Return" Name="Customers">
<TypeDescriptor TypeName="SampleWebServiceProxy.Customer[],
SampleWebService" IsCollection="true" Name="ArrayOfCustomer">
<TypeDescriptors>
<TypeDescriptor TypeName="SampleWebServiceProxy.Customer,
SampleWebService" Name="Customer">
<TypeDescriptors>
<TypeDescriptor TypeName="System.String"
IdentifierName="CustomerID" Name="CustomerID" />
<TypeDescriptor TypeName="System.String" Name="Name" />
<TypeDescriptor TypeName="System.Int64"
Name="WorkPhoneNumber" />
<TypeDescriptor TypeName="System.Int64"
Name="MobilePhoneNumber" />
<TypeDescriptor TypeName="System.String" Name="Industry" />
<TypeDescriptor TypeName="System.String" Name="WebSite" />
<TypeDescriptor TypeName="SampleWebServiceProxy.Address, SampleWebServiceProxy" Name="Address">
<TypeDescriptors>
<TypeDescriptor TypeName="System.String" Name="StreetAddress" />
<TypeDescriptor TypeName="System.String" Name="City"/>
<TypeDescriptor TypeName="System.String" Name="ZipCode"/>
</TypeDescriptors>
</TypeDescriptor>
</TypeDescriptors>
</TypeDescriptor>
</TypeDescriptors>
</TypeDescriptor>
</Parameter>