PushEvent 및 PushEvents SOAP을 호출하는 방법 | ACC
이 문서에서는 Adobe Campaign 및 Adobe Campaign Classic에서 PushEvent 및 PushEvents SOAP 을(를) 호출하려는 경우 해결 방법을 제공합니다.
설명 description
환경
- Campaign Classic
- Campaign
- Campaign Classic v7
- Campaign v8
문제/증상
필수 구성 요소:
-
호출 트리거를 위한 SOAP UI 다운로드
-
SOAP UI에 WSDL(
<서버 url>/nl/jsp/schemawsdl.jsp?schema=nms:rtEvent) 업로드 -
테스트 컴퓨터의 IP가 승인되어야 합니다. 승인하지 않으면 "액세스 거부됨" 오류가 발생합니다.
-
<urn:sessiontoken>로그인/암호</urn:sessiontoken>에 넣을 인증에 유효한 자격 증명(일반적으로 mc 사용자)
해결 방법 resolution
푸시 이벤트:
이 호출은 RT 인스턴스에서 unique 이벤트를 트리거할 때 사용됩니다.
컨트롤 인스턴스에서 RT에 템플릿("테스트")을 게시해야 합니다.
< urn:domEvent>에서 유형의 이벤트 < rtEvent>은(는) 템플릿 형식인 type 과(와) 받는 사람 전자 메일 주소인 email 로 정의해야 합니다.
< ctx>에서 템플릿에 사용되는 모든 특성을 정의해야 합니다. 이 예의 템플릿에는 다음 항목이 포함됩니다.
< P >Your email is: <%= rtEvent.email %>< P > -> is using the attribute email directly as email in define within rtEvent
< P >Your first name: <%= rtEvent.ctx.firstName %>< P > -> is using ctx.firstname as ctx is an inner element of rtEvent
< P >Your last name: <%= rtEvent.ctx.lastName %>< P> -> is using ctx.lastname as ctx is an inner element of rtEvent
호출의 예:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:nms:rtEvent">
< soapenv:Header/>
< soapenv:Body>
< urn:PushEvent>
< urn:sessiontoken> 로그인/암호< /urn:sessiontoken>
< urn:domEvent>
< rtEvent type="test" email="xxx@gmail.com">
< ctx>
< firstName> ABC< /firstName>
< lastName> DEF< /lastName>
< /ctx>
< /rtEvent>
< /urn:domEvent>
< /urn:PushEvent>
< /soapenv:Body>< /soapenv:Envelope>
성공 응답:
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="urn:nms:rtEvent" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
< SOAP-ENV:Body>
< PushEventResponse SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns="urn:nms:rtEvent">
< plId xsi:type="xsd:long"> 0000000000< /plId>
< /PushEventResponse>
< /SOAP-ENV:Body>< /SOAP-ENV:Envelope>
PIID를 수신한다는 것은 이벤트가 성공적으로 수신되었고 처리 중임을 의미합니다.
푸시 이벤트:
이 호출은 RT 인스턴스에서 multiple 이벤트를 트리거할 때 사용됩니다.
모든 요구 사항은 첫 번째 호출과 동일합니다.
<urn:domEventCollection>에 여러 < rtEvent>이(가) 정의되어 있어야 합니다.
호출의 예:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:nms:rtEvent">
< soapenv:Header/>
< soapenv:Body>
< urn:PushEvents>
< urn:sessiontoken> ?< /urn:sessiontoken>
< urn:domEventCollection>
< !- 이 시점에서 모든 요소를 입력할 수 있습니다. 1개 이상의 요소가 필요합니다. —>
< /urn:domEventCollection>
< /urn:PushEvents>
< /soapenv:Body>< /soapenv:Envelope>
참고: 이 호출에 1개의 요소만 정의된 경우 RT 인스턴스에서 수신되며 응답 200 OK가 표시되지만 이벤트가 트리거, 처리 또는 이벤트에 표시되지 않습니다. 웹로그에 아무 것도 표시되지 않습니다.
이 유형의 응답을 받게 되며, 이는 RT에 도달했지만 아무 일도 발생하지 않음을 의미합니다.
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="urn:nms:rtEvent" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
< SOAP-ENV:Body>
< PushEventsResponse SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns="urn:nms:rtEvent">
< pdomIds xsi:type="ns:Element" SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml">
< rtEvent email="xxx@gmail.com" type="test"/>
< /pdomIds>
< /PushEventsResponse>
< /SOAP-ENV:Body>< /SOAP-ENV:Envelope>
이벤트가 트리거되지 않는 이유는 PUSH EVENTS 이(가) 여러 이벤트가 있는 경우에만 작동하기 때문입니다. 호출이 하나의 이벤트로만 이루어진 경우 PUSH EVENT 호출이 필요합니다.