Skip to content

SOAP-web-services spring-boot application : countries-service and countries-client

License

Notifications You must be signed in to change notification settings

magsadn/SOAP-web-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT License LinkedIn

SOAP-web-services

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.

producing-web-service

http://localhost:8080/ws/countries.wsdl

Add countries.xsd file to /countries-service/src/main/resources/countries.xsd

Requests

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

XML requests:

For XML requests @GetMapping(value = "/{name}") in

countries-client/src/main/java/com/magsad/consumingwebservice/RestController.java

JSON requests:

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

About

SOAP-web-services spring-boot application : countries-service and countries-client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages