Skip to content

Sensedia/sol-assets-sensedia-credit-legacy-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credit Risk Legacy Service

📌 Project Overview

This project is a SOAP-based web service for credit risk assessment, built using Spring Boot and Apache CXF. It evaluates credit scores and blacklist status for financial applications.

🚀 Features

  • SOAP API with WSDL support
  • Credit score evaluation
  • Blacklist verification
  • AWS EC2 deployment with S3 intermediate storage

📂 Project Structure

/credit-risk-legacy-service
├── src/main/java/com/sensedia/demos/   # Java source code
├── src/main/resources/                 # Configuration files
├── src/main/resources/data             # Data files (eg. data.json and blacklist.json)
├── Dockerfile                          # Docker build configuration
├── pom.xml                             # Maven dependencies
└── README.md                           # Project documentation

🛠 Prerequisites

  • Java 17
  • Maven
  • AWS CLI (for AWS EC2 & S3 access)

🔧 Build & Run Locally

  1. Build the project
    mvn clean install
  2. Run the application
    mvn spring-boot:run
  3. Access the WSDL
    http://localhost:8080/services/CreditRiskService?wsdl
    

☁️ Deploy on AWS EC2

1. Build and Package the JAR

mvn clean package

2. Check AWS Credentials

  • Use AWS SSO to get temporary credentials.
  • Go to AWS SSO Start Page and select Account 'Pre Sales Team'.

3. Upload JAR to S3 (Intermediate Storage)

aws s3 cp ./target/credit-risk-legacy-service-1.0-SNAPSHOT.jar s3://solutions-transfer/sensedia-credit/

4. Connect to EC2 Instance

  • Access EC2 (i-066d07595777c4026, SA-EAST-1 region).
  • Use EC2 Instance Connect (recommended): EC2 Console

5. Navigate to the Deployment Folder

cd /home/ec2-user/sensedia-credit/credit-risk-legacy-service

6. Set AWS Credentials (Temporary)

export AWS_ACCESS_KEY_ID=<your-access-key>
export AWS_SECRET_ACCESS_KEY=<your-secret-key>
export AWS_SESSION_TOKEN=<your-session-token>

📌 Get these credentials from AWS SSO Start Page.

7. Download the JAR from S3 to EC2

aws s3 cp s3://solutions-transfer/sensedia-credit/credit-risk-legacy-service-1.0-SNAPSHOT.jar ./

8. Run the Application for Testing

java -jar ./credit-risk-legacy-service-1.0-SNAPSHOT.jar

9. Run the Application in the Background

nohup java -jar credit-risk-legacy-service-1.0-SNAPSHOT.jar > app.log 2>&1 &

📊 Monitoring Logs

tail -f app.log

📄 License

This project is licensed under the MIT License.


✅ Developed by Sensedia Team

About

Solution Asset - Sensedia Credit - Legacy SOAP Service for Risk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published