summaryrefslogtreecommitdiff
path: root/lib/soap/ecc/send/create-po.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-08-25 10:52:24 +0000
committerjoonhoekim <26rote@gmail.com>2025-08-25 10:52:24 +0000
commit83f67ed333f0237b434a41d1eceef417c0d48313 (patch)
treeeb911edaccf778e78be5564416748ff577a8aa76 /lib/soap/ecc/send/create-po.ts
parent780d56edd3772813b4e557061a3c90d9f7d1ddd0 (diff)
(김준회) 설정 변경 및 WSDL namespace 반영, 로그인 완료시 dashboard 이동 (콜백 없을 때)
Diffstat (limited to 'lib/soap/ecc/send/create-po.ts')
-rw-r--r--lib/soap/ecc/send/create-po.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/soap/ecc/send/create-po.ts b/lib/soap/ecc/send/create-po.ts
index 3bd28057..d44f091b 100644
--- a/lib/soap/ecc/send/create-po.ts
+++ b/lib/soap/ecc/send/create-po.ts
@@ -3,8 +3,8 @@
import { sendSoapXml, type SoapSendConfig, type SoapLogInfo, type SoapSendResult } from "@/lib/soap/sender";
import { getCurrentSAPDate, getCurrentSAPTime } from "@/lib/soap/utils";
-// ECC PO 생성 엔드포인트
-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";
+// 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";
// PO 헤더 데이터 타입
export interface POHeaderData {
@@ -154,7 +154,8 @@ async function sendPOToECC(poData: POCreateRequest): Promise<SoapSendResult> {
soapAction: 'http://sap.com/xi/WebService/soap1.1',
timeout: 60000, // PO 생성은 60초 타임아웃
retryCount: 3,
- retryDelay: 2000
+ retryDelay: 2000,
+ namespace: 'http://shi.samsung.co.kr/P2_MM/MMM' // ECC MM 모듈 네임스페이스
};
// 로그 정보