728x90 728x90 Knowledge5 [webMethods] JSON 형식 API 호출하기 [webMethods에서 JSON 형식 API 호출하기]webMethods에서 내부/외부 시스템의 JSON 형식의 API 호출해보자1. pub.json:documentToJSONString 변환2. pub.client:http (request paramter / post / bytes or Stream)3. 리턴 결과 확인4. pub.json:jsonStringToDocument 변환 2021. 2. 21. [webMethods] Java에서 webMethods 웹서비스 호출하기 [Java에서 webMethods 웹서비스 호출하기]자바로 webMethods 웹서비스를 직접 호출해보자프로세스1. 연계 시스템에서 웹서비스를 통해 Request 값을 설정한 후 실시간 Request 한다. ※ 사전 WSDL 파일 배포 (EAI단에서 제공함)2. ERP 및 Legacy 로부터 전송결과 또는 조회데이타를 레거시 시스템으로 실시간 전달한다.WSDL importwebMethods(Provider)에서 배포한 WSDL 파일을 이용해서 이클립스(Eclipse)에서 Web Services Client로 생성한다JAVA Sourceimport javax.xml.rpc.holders.StringHolder;public class callToWSC {public static void main(Stri.. 2021. 2. 21. [webMethods] SSL debug 작업을 위한 환경 설정 webMethods SSL debug 작업을 위한 환경 설정1. IS_Profiles > custom_wrapper.conf 파일 수정wrapper.java.additional.204=-Djavax.net.debug=ssl 2. webMethods > Extendswatt.ssl.iaik.debug=truewatt.config.systemProperties=javax.net.debug=ssl3. 서버 shutdown 후 startup 수행4. wrapper.log 파일 확인 2021. 2. 10. [webMethods] WS-Security 이해 webMethods WS-Security 이해ConceptHTTPS is a transport layer (point-to-point) security mechanism(TLS) WS-Security is an application layer (end-to-end) security mechanism.Architecture webMethods WS-Security 설정1. policy for UsernamewebMethods에서는 PasswordText 만 지원함 (PasswordDigest방식은 지원하지 않음)[Consumer]1) Admin > Websercie Alias > provider ip,port, username 등록 또는 Development > auth/message 에 하드코딩함2) [.. 2021. 2. 10. [webMethods] 자바 서비스로 log파일 삭제하기 [webMethods 자바 서비스로 log파일 삭제하기]find ./ -type f -mtime +90 -name * -exec rm -rf {} ;webMethods 자바 구현한 후 실행해보면 실제 로그파일들이 삭제된 것을 확인할 수 있다.IDataCursor pipelineCursorInput = pipeline.getCursor(); String[] dirList = IDataUtil.getStringArray( pipelineCursorInput, "dirList"); //삭제할 로그 디렉토리 String interval = IDataUtil.getString( pipelineCursorInput, "interval" ); //interval 이전 데이타 String fileLevel = IDa.. 2021. 2. 10. 이전 1 다음 728x90 반응형