Spring Framework/Project

[SOAP]Web Service Project 개요

johye0 2022. 2. 14. 23:04
반응형

프로젝트 개요


  • SOAP를 이용한 데이터 송수신 프로젝트 생성 (aka. 웹서비스 인터페이스)
  • 웹서비스는 은행, 보험, 금융 기관 및 기타 관련 기업에서 널리 사용되고 있다. 현재 가장 편리한 통합 솔루션은 Apache에서 제공하는 CXF와 Spring 자체에서 제공하는 Spring WS이다.

 

 

기능 명세서


  • 데이터 수신(Server) 기능 구현
  • 데이터 송신(Client) 기능 구현
  • Cron 기반 스케줄링 처리 구현
  • 인터페이스 수행 이력 확인 (로그, 데이터)

 

SOAP vs REST


 

SOAP와 REST는 "웹 서비스에 액세스 하는 방법에는 무엇이 있습니까?" 라는 질문에 대한 답변일 뿐이다.

SOAP와 REST 중 사용할 방식을 결정하기 위해서는 본인이 개발할 프로그램의 요구사항을 잘 충족하는 웹서비스가 무엇인지에 초점을 맞춰야 한다.

 

SOAP의 특성

  • 서비스의 기술문서(WSDL)를 매개로 서비스 능력을 개방하고자 한 기술이다.
  • 언어, 플랫폼 및 전송 프로토콜에 독립적 (REST는 HTTP 사용 필요)
  • 분산 엔터프라이즈 환경에서 잘 작동(REST는 직접적인 지점간 통신을 가정)
  • 표준화
  • 상당한 WS* 표준 형식의 사전 구축 확장성
  • 내장된 오류 처리
  • 특정 언어 제품과 함께 사용되는 경우 자동화

REST의 특성

  • URI를 기반으로 리소스를 개방하고자 하는 기술이다.
  • REST는 대부분 사용하기 쉽고 더 유연하다. ⇒ 학습 곡선이 더 작음
  • 웹 서비스와 상호 작용하는 데 값비싼 도구가 필요하지 않다.
  • 효율적 (SOAP은 모든 메시지에 XML을 사용하고 REST는 더 작은 메시지 형식을 사용할 수 있음)
  • 빠름 (광범위한 처리가 필요 없음)

 

프로젝트 스택


 

구분 Software Description
Java 1.8  
Framework SpringBoot 2.6.1  
Build Manager Maven  
IDE STS / IntelliJ  
Packaging Jar  
Database Oracle  
Web Application Server Embedded Tomcat  
Dependency Repository Nexus 개인 Nexus 서버 주소
  Maven Central https://search.maven.org/
Dependency Spring Web Build web, including RESTful, applications using Spring MVC. Uses Apache Tomcat as the default embedded container.
  Spring Boot DevTools Provides fast application restarts, LiveReload, and configurations for enhanced development experience.
  Lombok Java annotation library which helps to reduce boilerplate code.
  Thymeleaf A modern server-side Java template engine for both web and standalone environments.
  Thymeleaf Layouts  
  Oracle Driver A JDBC driver that provides access to Oracle.
  MyBatis Framework Persistence framework with support for custom SQL, stored procedures and advanced mappings.
  Spring Data JDBC Persist data in SQL stores with plain JDBC using Spring Data.
  Quartz Scheduler Schedule jobs using Quartz
  Spring Web Services Facilitates contract-first SOAP development.

 

반응형