我使用此web服务http://www.webservicex.com/globalweather.asmx?WSDL以国家名称获取所有城市名称。我用下面的代码来获得响应使用WSDL WebService填充组合框
GlobalWeatherReference.GlobalWeatherSoapClient weather = new GlobalWeatherReference.GlobalWeatherSoapClient("GlobalWeatherSoap12");
cities_cb.DataSource = weather.GetCitiesByCountry("Chad").ToList();
这将返回
string
<NewDataSet>
<Table>
<Country>Chad</Country>
<City>Sarh</City>
</Table>
<Table>
<Country>Chad</Country>
<City>Abeche</City>
</Table>
<Table>
<Country>Chad</Country>
<City>Moundou</City>
</Table>
<Table>
<Country>Chad</Country>
<City>Ndjamena</City>
</Table>
<Table>
<Country>Chad</Country>
<City>Bokoro</City>
</Table>
<Table>
<Country>Chad</Country>
<City>Bol-Berim</City>
</Table>
<Table>
<Country>Chad</Country>
<City>Am-Timan</City>
</Table>
<Table>
<Country>Chad</Country>
<City>Pala</City>
</Table>
<Table>
<Country>Chad</Country>
<City>Faya</City>
</Table>
</NewDataSet>
现在我需要通过城市名称来填充组合框。请帮忙。