This project is read-only.

Collections not generated

Aug 9, 2011 at 8:48 AM

Hi there,

I want to user WCF.blue for data contract generation on RESTful webservices. When I generate the code for collection types, no collection will be generated, either way which options I select. For example, a snippet from the walkthrough:

 

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="RestaurantData" targetNamespace="urn:thinktecture-com:demos:restaurantservice:data:v1"
	elementFormDefault="qualified" xmlns="urn:thinktecture-com:demos:restaurantservice:data:v1"
	xmlns:mstns="urn:thinktecture-com:demos:restaurantservice:data:v1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:complexType name="restaurantInfo">
		<xs:sequence>
			<xs:element name="restaurantID" type="xs:int" />
			<xs:element name="name" type="xs:string" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="restaurantsList">
		<xs:sequence>
			<xs:element name="restaurant" type="restaurantInfo" 
                        maxOccurs="unbounded" minOccurs="0" />
		</xs:sequence>
	</xs:complexType>
</xs:schema>

If I add this xsd to my project, right-click it and select "Generate data contract", only restaurantinfo.cs will be generated. What do I have to do to get the list-type also?

Regards

Matthias