如何在 wcf 中使用 DataContractSerializer 反序列化嵌套的 xml?示例 xml 是;
<smsPaidPhoneBookSearchResponse xmlns="http://callturksvc.alfion.com.tr">
<webServiceResponseType>SUCCESS</webServiceResponseType>
<clientQueryId>112628650000001078</clientQueryId>
<phoneBookList>
<phoneBook>
<cityName>İstanbul</cityName>
<districtName>Beşiktaş</districtName>
<firstName>Şuayp</firstName>
<lastModifiedDateTime>2013-03-06T16:05:59.508+02:00</lastModifiedDateTime>
<lastName>Çiçek</lastName>
<phoneBookTypeEnumValue>TURKCELL</phoneBookTypeEnumValue>
<phoneNumberText>535357****</phoneNumberText>
</phoneBook>
<phoneBook>
<cityName>İstanbul</cityName>
<districtName>Beşiktaş</districtName>
<firstName>Şuayp</firstName>
<lastModifiedDateTime>2013-03-06T16:05:59.510+02:00</lastModifiedDateTime>
<lastName>Çiçek</lastName>
<phoneBookTypeEnumValue>TURKCELL</phoneBookTypeEnumValue>
<phoneNumberText>535957****</phoneNumberText>
</phoneBook>
</phoneBookList>
</smsPaidPhoneBookSearchResponse>
我成功地获得了这些值(webServiceResponseType,clientQueryId),但我无法将 phoneBookList 作为 phoneBook 类的通用列表。例如:List<phoneBook>
有什么解决办法吗?