http://myhost/webservices/regione
索要所有地区的清单。provincias 是一个地区的更详细信息,将被要求
http://myhost/webservices/regione/1
<?xml version="1.0" encoding="UTF-8"?>
<regione>
<id>1</id>
<nome>Piemonte</nome>
<ripartizioneGeografica>NORD OCCIDENTALE</ripartizioneGeografica>
<provincias>
<provincia>
...
</provincia>
...
</provincias>
</regione>
测试项目生成的xml
<regionss uri="http://localhost:8080/WebApplication2/resources/regionss">
<regions uri="http://localhost:8080/WebApplication2/resources/regionss/1/">
<id>1</id>
<name>Region 1</name>
<provincesCollection uri="http://localhost:8080/WebApplication2/resources/regionss/1/provincesCollection/">
<provinces uri="http://localhost:8080/WebApplication2/resources/regionss/1/provincesCollection/1/"/>
<provinces uri="http://localhost:8080/WebApplication2/resources/regionss/1/provincesCollection/2/"/>
</provincesCollection>
</regions>
<regions uri="http://localhost:8080/WebApplication2/resources/regionss/2/">
<id>2</id>
<name>Region 2</name>
<provincesCollection uri="http://localhost:8080/WebApplication2/resources/regionss/2/provincesCollection/">
<provinces uri="http://localhost:8080/WebApplication2/resources/regionss/2/provincesCollection/3/"/>
</provincesCollection>
</regions>
<regions uri="http://localhost:8080/WebApplication2/resources/regionss/3/">
<id>3</id>
<name>Region 3</name>
<provincesCollection uri="http://localhost:8080/WebApplication2/resources/regionss/3/provincesCollection/">
<provinces uri="http://localhost:8080/WebApplication2/resources/regionss/3/provincesCollection/4/"/>
<provinces uri="http://localhost:8080/WebApplication2/resources/regionss/3/provincesCollection/5/"/>
<provinces uri="http://localhost:8080/WebApplication2/resources/regionss/3/provincesCollection/6/"/>
</provincesCollection>
</regions>
</regionss>