diff options
| author | joonhoekim <26rote@gmail.com> | 2025-09-03 07:05:05 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-09-03 07:05:05 +0000 |
| commit | c5fc7195505d82c60fc9dffc3744782b91d7ebb7 (patch) | |
| tree | 588350714f121f8c394a9634fb2d669309420a37 /lib/soap/ecc/send | |
| parent | 0ed64cf896ad5b18dbee958aaa7fec17ffd9dfa9 (diff) | |
(김준회) ECC 송신건 엔드포인트 오류 수정 및 테스트 송신페이지 개선
Diffstat (limited to 'lib/soap/ecc/send')
| -rw-r--r-- | lib/soap/ecc/send/cancel-rfq.ts | 10 | ||||
| -rw-r--r-- | lib/soap/ecc/send/create-po.ts | 10 | ||||
| -rw-r--r-- | lib/soap/ecc/send/pcr-confirm.ts | 10 | ||||
| -rw-r--r-- | lib/soap/ecc/send/rfq-info.ts | 10 |
4 files changed, 36 insertions, 4 deletions
diff --git a/lib/soap/ecc/send/cancel-rfq.ts b/lib/soap/ecc/send/cancel-rfq.ts index bcbe0c7a..aeba6dd6 100644 --- a/lib/soap/ecc/send/cancel-rfq.ts +++ b/lib/soap/ecc/send/cancel-rfq.ts @@ -3,7 +3,7 @@ import { sendSoapXml, type SoapSendConfig, type SoapLogInfo, type SoapSendResult } from "@/lib/soap/sender"; // ECC RFQ 취소 엔드포인트 (WSDL에 명시된 P2038_D 사용) -const ECC_CANCEL_RFQ_ENDPOINT = "http://shii8dvddb01.hec.serp.shi.samsung.net:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=P2038_D&Interface=http%3A%2F%2Fshi.samsung.co.kr%2FP2_MM%2FMMM%5EP2MM3016_SO&QualityOfService=ExactlyOnce"; +const ECC_CANCEL_RFQ_ENDPOINT = "http://shii8dvddb01.hec.serp.shi.samsung.net:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=P2038_Q&Interface=http%3A%2F%2Fshi.samsung.co.kr%2FP2_MM%2FMMM%5EP2MM3016_SO"; // RFQ 취소 요청 데이터 타입 export interface CancelRFQRequest { @@ -118,6 +118,10 @@ export async function cancelRFQ(rfqNumber: string): Promise<{ success: boolean; message: string; responseData?: string; + statusCode?: number; + headers?: Record<string, string>; + endpoint?: string; + requestXml?: string; rfqNumber?: string; }> { try { @@ -135,6 +139,10 @@ export async function cancelRFQ(rfqNumber: string): Promise<{ success: result.success, message: result.success ? 'RFQ 취소 요청이 성공적으로 전송되었습니다.' : result.message, responseData: result.responseText, + statusCode: result.statusCode, + headers: result.headers, + endpoint: result.endpoint, + requestXml: result.requestXml, rfqNumber }; diff --git a/lib/soap/ecc/send/create-po.ts b/lib/soap/ecc/send/create-po.ts index 0d992fb3..444d9cc1 100644 --- a/lib/soap/ecc/send/create-po.ts +++ b/lib/soap/ecc/send/create-po.ts @@ -4,7 +4,7 @@ import { sendSoapXml, type SoapSendConfig, type SoapLogInfo, type SoapSendResult import { getCurrentSAPDate, getCurrentSAPTime } from "@/lib/soap/utils"; // ECC PO 생성 엔드포인트 (WSDL에 명시된 P2038_D 사용) -const ECC_PO_ENDPOINT = "http://shii8dvddb01.hec.serp.shi.samsung.net:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=P2038_D&Interface=http%3A%2F%2Fshi.samsung.co.kr%2FP2_MM%2FMMM%5EP2MM3015_SO&QualityOfService=ExactlyOnce"; +const ECC_PO_ENDPOINT = "http://shii8dvddb01.hec.serp.shi.samsung.net:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=P2038_Q&Interface=http%3A%2F%2Fshi.samsung.co.kr%2FP2_MM%2FMMM%5EP2MM3015_SO"; // PO 헤더 데이터 타입 export interface POHeaderData { @@ -198,6 +198,10 @@ export async function createPurchaseOrder(poData: POCreateRequest): Promise<{ success: boolean; message: string; responseData?: string; + statusCode?: number; + headers?: Record<string, string>; + endpoint?: string; + requestXml?: string; bidding_number?: string; }> { try { @@ -209,6 +213,10 @@ export async function createPurchaseOrder(poData: POCreateRequest): Promise<{ success: result.success, message: result.success ? 'PO 생성 요청이 성공적으로 전송되었습니다.' : result.message, responseData: result.responseText, + statusCode: result.statusCode, + headers: result.headers, + endpoint: result.endpoint, + requestXml: result.requestXml, bidding_number: poData.T_Bidding_HEADER[0]?.ANFNR }; diff --git a/lib/soap/ecc/send/pcr-confirm.ts b/lib/soap/ecc/send/pcr-confirm.ts index 72d4a574..439ec6f8 100644 --- a/lib/soap/ecc/send/pcr-confirm.ts +++ b/lib/soap/ecc/send/pcr-confirm.ts @@ -4,7 +4,7 @@ import { sendSoapXml, type SoapSendConfig, type SoapLogInfo, type SoapSendResult } from "@/lib/soap/sender"; // ECC PCR 확인 엔드포인트 (WSDL에 명시된 P2038_D 사용) -const ECC_PCR_CONFIRM_ENDPOINT = "http://shii8dvddb01.hec.serp.shi.samsung.net:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=P2038_D&Interface=http%3A%2F%2Fshi.samsung.co.kr%2FP2_MM%2FMMM%5EP2MM3019_SO&QualityOfService=ExactlyOnce"; +const ECC_PCR_CONFIRM_ENDPOINT = "http://shii8dvddb01.hec.serp.shi.samsung.net:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=P2038_Q&Interface=http%3A%2F%2Fshi.samsung.co.kr%2FP2_MM%2FMMM%5EP2MM3019_SO"; // PCR 확인 요청 데이터 타입 export interface PCRConfirmRequest { @@ -227,6 +227,10 @@ export async function confirmPCR(pcrItem: { success: boolean; message: string; responseData?: string; + statusCode?: number; + headers?: Record<string, string>; + endpoint?: string; + requestXml?: string; pcrRequest?: string; }> { try { @@ -242,6 +246,10 @@ export async function confirmPCR(pcrItem: { success: result.success, message: result.success ? 'PCR 확인 요청이 성공적으로 전송되었습니다.' : result.message, responseData: result.responseText, + statusCode: result.statusCode, + headers: result.headers, + endpoint: result.endpoint, + requestXml: result.requestXml, pcrRequest: `${pcrItem.PCR_REQ}-${pcrItem.PCR_REQ_SEQ}` }; diff --git a/lib/soap/ecc/send/rfq-info.ts b/lib/soap/ecc/send/rfq-info.ts index 777c1dfe..ffc47fc6 100644 --- a/lib/soap/ecc/send/rfq-info.ts +++ b/lib/soap/ecc/send/rfq-info.ts @@ -20,7 +20,7 @@ import { sendSoapXml, type SoapSendConfig, type SoapLogInfo, type SoapSendResult import { getCurrentSAPDate } from "@/lib/soap/utils"; // ECC RFQ 정보 전송 엔드포인트 (WSDL에 명시된 P2038_D 사용) -const ECC_RFQ_ENDPOINT = "http://shii8dvddb01.hec.serp.shi.samsung.net:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=P2038_D&Interface=http%3A%2F%2Fshi.samsung.co.kr%2FP2_MM%2FMMM%5EP2MM3014_SO&QualityOfService=ExactlyOnce"; +const ECC_RFQ_ENDPOINT = "http://shii8dvddb01.hec.serp.shi.samsung.net:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=P2038_Q&Interface=http%3A%2F%2Fshi.samsung.co.kr%2FP2_MM%2FMMM%5EP2MM3014_SO"; // RFQ 헤더 데이터 타입 export interface RFQHeaderData { @@ -189,6 +189,10 @@ export async function sendRFQInformation(rfqData: RFQInfoRequest): Promise<{ success: boolean; message: string; responseData?: string; + statusCode?: number; + headers?: Record<string, string>; + endpoint?: string; + requestXml?: string; rfq_number?: string; }> { try { @@ -200,6 +204,10 @@ export async function sendRFQInformation(rfqData: RFQInfoRequest): Promise<{ success: result.success, message: result.success ? 'RFQ 정보가 성공적으로 전송되었습니다.' : result.message, responseData: result.responseText, + statusCode: result.statusCode, + headers: result.headers, + endpoint: result.endpoint, + requestXml: result.requestXml, rfq_number: rfqData.T_RFQ_HEADER[0]?.ANFNR }; |
