SOAP (Simple Object Access Protocol) is a lightweight protocol for exchange of information in a decentralized, distributed environment. It is an XML based protocol that consists of three parts: an envelope that defines a framework for describing what is in a message and how to process it, a set of encoding rules for expressing instances of application-defined datatypes, and a convention for representing remote procedure calls and responses. SOAP can potentially be used in combination with a variety of other protocols; however, the only bindings defined in this document describe how to use SOAP in combination with HTTP and HTTP Extension Framework.
http://localhost:8080/ws/countries.wsdl
Add countries.xsd file to /countries-service/src/main/resources/countries.xsd
You can use to SoapUI for XML requests, Postman or Advanced REST Client by MuleSoft for JSON requests.
get country : http://localhost:8090/country/{name}
{name} - Spain, United Kingdom, Poland, United States America, Brazil
For XML requests @GetMapping(value = "/{name}") in
countries-client/src/main/java/com/magsad/consumingwebservice/RestController.java
For JSON request add produces = MediaType.APPLICATION_JSON_VALUE
to @GetMapping(value = "/{name}", produces = MediaType.APPLICATION_JSON_VALUE) in
countries-client/src/main/java/com/magsad/consumingwebservice/RestController.java