Я хочу вернуть список стран из моей конечной точки. Мой метод конечной точки:
@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getAllCountriesRequest")
@ResponsePayload
public HashMap<String,Country> getCountries() {
return countryRepository.getCountries();
}
Но я не могу записать методы запросов и ответов в xsd-файле. Мой xsd-файл
<xs:element name="getAllCountriesRequest">
<xs:complexType>
// I do not know what I write
</xs:complexType>
</xs:element>
<xs:element name="getAllCountriesResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="key" minOccurs="0" type="xs:string"/>
<xs:element name="value" minOccurs="0" type="tns:country"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Я хочу отправить запрос на получение с почтальоном, но мой веб-сервис как найти без тела? Есть ли идея для этого процесса?