PushEvent および PushEvents の SOAP 呼び出しの実行方法 | ACC
この記事では、次の操作を行う場合の回避策を説明します。 PushEvent および PushEvents SOAP Adobe CampaignとAdobe Campaign Classicの呼び出し。
説明 description
環境
- Campaign Classic
- Campaign
- Campaign Classic v7
- Campaign v8
問題/症状
前提条件:
-
呼び出しをトリガーする SOAP UI をダウンロード
-
WSDL のアップロード (
<
サーバー url>
/nl/jsp/schemawsdl.jsp?schema=nms:rtEvent) を SOAP UI に -
テスト用コンピューターの IP は許可されている必要があります。許可されていない場合は、「アクセスが拒否されました」というエラーが表示されます。
-
入力する認証(通常は mc ユーザー)の有効な資格情報
<
urn:sessiontoken>
login/password<
/urn:sessiontoken>
解決策 resolution
プッシュイベント:
この呼び出しは、 ユニーク イベントを RT インスタンスに送信する必要があります。
テンプレート ("test" (例では)は、コントロールインスタンスから RT に正常に公開される必要があります。
In <
urn:domEvent>
、タイプのイベント <
rtEvent>
は、次を使用して定義する必要があります。 type テンプレートタイプであり、 電子メール 受信者の電子メールアドレスです。
In <
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>
login/password<
/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 インスタンスに追加します。
すべての要件は最初の呼び出しと同じです。
複数 <
rtEvent>
は、 <
urn:domEventCollection>
.
呼び出しの例:
<
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>
<
! — この時点で ANY 要素を入力できます。 複数の要素が必要です —>
<
/urn:domEventCollection>
<
/urn:PushEvents>
<
/soapenv:Body>
<
/soapenv:Envelope>
注意: この呼び出しで定義されている要素が 1 つだけの場合、RT インスタンスが受け取り、応答は 200 OK ですが、 イベントはトリガーされず、処理もイベントに表示もされません Web ログには何も表示されません。
このタイプの応答が返されます。つまり、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>
イベントがトリガーされない理由は、 プッシュイベント は、複数のイベントの場合にのみ機能します。 1 つのイベントのみで呼び出しがおこなわれる場合、 プッシュイベント 呼び出しが必要です。