The objective is to develop a web service using REST architecture that consumes data from two external web services: one REST and one SOAP
SOAP is an interface allowing a device to use a server service. Search engines, online shops and many other services on the Internet operate via such Web services. SOAP is one of the protocols that allow communication.
To consume our API, we used RESTtemplate , we made RestTemplate make interaction with most RESTful services a one-line incantation. And it can even link this data to custom domain types.
(https://secure.ftipgw.com/ArgoFire/validate.asmx?WSDL )
-
GetCardType(card number)
- Returns the Card type
-
ValidCard(card number, expiration date)
-
Used during the validation Process
-
Returns:
- 0 if good,
- 1001 - no card number,
- 1002 - no exp date,
- 1003 - invalid card type,
- 1004 - invalid card length,
- 1005 - bad mod 10 check,
- 1006 - bad expiration date
-
amounts.
-
(http://www.dataaccess.com/webservicesserver/numberconversion.wso )
-
(http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL )
-
(https://www.genivia.com/examples/calc/calc.wsdl )
- defines five calculator methods add, sub, mul, div, and pow.
-
(http://www.dneonline.com/calculator.asmx ) or (http://www.dneonline.com/calculator.asmx?WSDL )
- supports the following operations: add, divide, multiply, subtract.
-
https://www.dataaccess.com/webservicesserver/TextCasing.wso?WSDL
- The Text Casing Web Service provides functions to change text casing in different ways.
-
https://www.w3schools.com/xml/tempconvert.asmx?WSDL
- Changes Celsius to Fahrenheit, and Fahrenheit to Celsius.
I choose to consume the API of the following url :
- https://random-data-api.com/api/v2/credit_cards
- https://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL
tests are done with swagger