v7
Campaign Classic v7에만 적용

데이터 지향 API data-oriented-apis

데이터 지향 API를 사용하면 전체 데이터 모델을 처리할 수 있습니다.

데이터 모델 개요 overview-of-the-datamodel

Adobe Campaign은 엔티티당 전용 읽기 API를 제공하지 않습니다(getRecipient 또는 getDelivery 함수 등 없음). QUERY & WRITER 데이터 읽기 및 수정 방법을 사용하여 모델의 데이터에 액세스합니다.

Adobe Campaign을 사용하면 컬렉션을 관리할 수 있습니다. 쿼리를 사용하면 기본 전체에서 수집된 정보 세트를 복구할 수 있습니다. SQL 모드의 액세스와 달리 Adobe Campaign API는 데이터 열 대신 XML 트리를 반환합니다. 따라서 Adobe Campaign은 수집된 모든 데이터를 사용하여 합성 문서를 만듭니다.

이 운영 모드에서는 XML 문서의 특성과 요소와 데이터베이스의 테이블 열 간의 일대일 매핑을 제공하지 않습니다.

XML 문서는 데이터베이스의 메모 유형 필드에 저장됩니다.

모델에 대한 설명 description-of-the-model

스크립트에서 데이터베이스의 필드를 처리할 수 있으려면 Adobe Campaign 데이터 모델에 익숙해야 합니다.

데이터 모델을 표시하려면 다음을 참조하십시오. Adobe Campaign 데이터 모델 설명.

쿼리 및 작성기 query-and-writer

다음 소개 스키마에서는 데이터베이스와 고객(웹 페이지 또는 Adobe Campaign 클라이언트 콘솔) 간의 읽기(ExecuteQuery) 및 쓰기(Writer) 하위 수준 교환을 자세히 설명합니다.

ExecuteQuery executequery

열과 조건의 경우 쿼리를 사용할 수 있습니다.

이렇게 하면 기본 SQL을 격리할 수 있습니다. 쿼리 언어는 기본 엔진에 따라 달라지지 않습니다. 일부 함수는 다시 매핑되어 여러 SELECT SQL 주문을 생성할 수 있습니다.

자세한 내용은 다음을 참조하십시오. 스키마 "xtk:queryDef"의 "ExecuteQuery" 메서드에 대한 예.

다음 ExecuteQuery 방법은에 나와 있습니다. ExecuteQuery(xtk:queryDef).

쓰기 write

쓰기 명령을 사용하면 하나 이상의 기본 테이블에 항목이 있는 간단하거나 복잡한 문서를 작성할 수 있습니다.

트랜잭션 API를 사용하면 다음을 통해 조정을 관리할 수 있습니다. updateOrInsert command: 하나의 명령을 사용하여 데이터를 만들거나 업데이트할 수 있습니다. 수정 사항 병합 을 구성할 수도 있습니다(병합): 이 운영 모드에서는 부분 업데이트를 승인할 수 있습니다.

XML 구조는 데이터의 논리적 뷰를 제공하며 SQL 테이블의 물리적 구조를 면할 수 있도록 합니다.

Write 메서드는에 나와 있습니다. 쓰기/쓰기 컬렉션(xtk:session).

ExecuteQuery(xtk:queryDef) executequery--xtk-querydef-

이 방법을 사용하면 스키마와 연결된 데이터에서 쿼리를 수행할 수 있습니다. 매개 변수로 제출할 쿼리를 설명하는 인증 문자열(로그인해야 함)과 XML 문서가 필요합니다. 반환 매개 변수는 쿼리가 참조하는 스키마 형식으로 쿼리 결과를 포함하는 XML 문서입니다.

"xtk:queryDef" 스키마의 "ExecuteQuery" 메서드 정의:

<method name="ExecuteQuery" const="true">
  <parameters>
    <param desc="Output XML document" name="output" type="DOMDocument" inout="out"/>
  </parameters>
</method>
NOTE
"const" 메서드입니다. 입력 매개 변수는 "xtk:queryDef" 스키마 형식으로 XML 문서에 포함됩니다.

입력 쿼리의 XML 문서 형식 format-of-the-xml-document-of-the-input-query

쿼리의 XML 문서 구조는 "xtk:queryDef " 스키마에 설명되어 있습니다. 이 문서에서는 SQL 쿼리의 "select", "where", "order by", "group by", "having" 절에 대해 설명합니다.

<queryDef schema="schema_key" operation="operation_type">
  <select>
    <node expr="expression1">
    <node expr="expression2">
    ...
  </select>
  <where>
    <condition expr="expression1"/>
    <condition expr="expression2"/>
    ...
  </where>
  <orderBy>
    <node expr="expression1">
    <node expr="expression2">
    ...
  </orderBy>
  <groupBy>
    <node expr="expression1">
    <node expr="expression2">
    ...
  </groupBy>
  <having>
    <condition expr="expression1"/>
    <condition expr="expression2"/>
    ...
  </having>
</queryDef>

하위 쿼리( <subquery> )는 다음에서 정의할 수 있습니다. <condition> 요소를 생성하지 않습니다. 구문 <subquery> 요소는 <querydef>.

의 예 <subquery> : </subquery>

<condition setOperator="NOT IN" expr="@id" enabledIf="$(/ignored/@ownerType)=1">
  <subQuery schema="xtk:operatorGroup">
     <select>
       <node expr="[@operator-id]" />
     </select>
     <where>
       <condition expr="[@group-id]=$long(../@owner-id)"/>
     </where>
   </subQuery>
</condition>

쿼리는 의 시작 스키마를 참조해야 합니다. 스키마 특성.

원하는 작업 유형이 작업 attribute이고 다음 값 중 하나를 포함합니다.

  • get: 테이블에서 레코드를 검색하고 데이터가 없으면 오류를 반환합니다.
  • getIfExists: 테이블에서 레코드를 검색하고 데이터가 없으면 빈 문서를 반환합니다.
  • 선택: 여러 레코드를 반환하는 커서를 만들고 데이터가 없으면 빈 문서를 반환합니다.
  • count: 데이터 수를 반환합니다.

다음 XPath 구문은 입력 스키마를 기반으로 데이터를 찾는 데 사용됩니다. XPath에 대한 자세한 내용은 데이터 스키마.

'get' 작업의 예 example-with-the--get--operation

이메일에 대한 필터를 사용하여 수신자의 성("nms:recipient" 스키마)과 이름을 검색합니다.

<queryDef schema="nms:recipient" operation="get">
  <!-- fields to retrieve -->
  <select>
    <node expr="@firstName"/>
    <node expr="@lastName"/>
  </select>

  <!-- condition on email -->
  <where>
    <condition expr="@email= 'john.doe@aol.com'"/>
  </where>
</queryDef>

'select' 작업의 예 example-with-the--select--operation

폴더 및 이메일 도메인에서 필터링된 수신자 목록을 생일 기준으로 내림차순으로 정렬하여 반환합니다.

<queryDef schema="nms:recipient" operation="select">
  <select>
    <node expr="@email"/>
    <!-- builds a string with the concatenation of the last name and first name separated by a dash -->
    <node expr="@lastName+'-'+@firstName"/>
    <!-- get year of birth date -->
    <node expr="Year(@birthDate)"/>
  </select>

  <where>
     <condition expr="[@folder-id] = 1234 and @domain like 'Adobe%'"/>
  </where>

  <!-- order by birth date -->
  <orderBy>
    <node expr="@birthDate" sortDesc="true"/> <!-- by default sortDesc="false" -->
  </orderBy>
</queryDef>

표현식은 단순 필드이거나 산술 연산 또는 문자열 연결과 같은 복잡한 표현식일 수 있습니다.

반환할 레코드 수를 제한하려면 lineCount 속성 <querydef> 요소를 생성하지 않습니다.

쿼리에서 반환되는 레코드 수를 100개로 제한하려면 다음을 수행합니다.

<queryDef schema="nms:recipient" operation="select" lineCount="100">
...

다음 100개의 레코드를 검색하려면 동일한 쿼리를 다시 실행하여 startLine 특성.

<queryDef schema="nms:recipient" operation="select" lineCount="100" startLine="100">
...

'count' 작업을 사용한 예 example-with-the--count--operation

쿼리의 레코드 수를 계산하려면 다음을 수행하십시오.

<queryDef schema="nms:recipient" operation="count"">
  <!-- condition on the folder and domain of the email -->
  <where>
    <condition expr="[@folder-id] = 1234" and @domain like 'Adobe%'"/>
  </where>
</queryDef>
NOTE
다시 이전 예제의 조건을 사용합니다. 다음 <select> 및 절은 사용되지 않습니다. </select>

데이터 그룹화 data-grouping

두 번 이상 참조된 이메일 주소를 검색하려면 다음 작업을 수행하십시오.

<queryDef schema="nms:recipient" operation="select">
  <select>
    <node expr="@email"/>
    <node expr="count(@email)"/>
  </select>

  <!-- email grouping clause -->
  <groupby>
    <node expr="@email"/>
  </groupby>

  <!-- grouping condition -->
  <having>
    <condition expr="count(@email) > 1"/>
  </having>

</queryDef>

를 추가하여 쿼리를 단순화할 수 있습니다 groupBy 속성을 그룹화할 필드에 직접 추가합니다.

<select>
  <node expr="@email" groupBy="true"/>
</select>
NOTE
를 더 이상 채우지 않아도 됩니다. <groupby> 요소를 생성하지 않습니다.

조건에서의 괄호로 묶기 bracketing-in-conditions

다음은 동일한 조건에서 중괄호로 묶은 두 가지 예입니다.

  • 단일 표현식의 단순 버전:

    code language-none
    <where>
      <condition expr="(@age > 15 or @age <= 45) and  (@city = 'Newton' or @city = 'Culver City') "/>
    </where>
    
  • 이 있는 구조화된 버전 <condition> 요소:

    code language-none
    <where>
      <condition bool-operator="AND">
        <condition expr="@age > 15" bool-operator="OR"/>
        <condition expr="@age <= 45"/>
      </condition>
      <condition>
        <condition expr="@city = 'Newton'" bool-operator="OR"/>
        <condition expr="@city = 'Culver City'"/>
      </condition>
    </where>
    

동일한 필드에 여러 조건이 적용될 때 'OR' 연산자를 'IN' 작업으로 바꿀 수 있습니다.

<where>
  <condition>
    <condition expr="@age IN (15, 45)"/>
    <condition expr="@city IN ('Newton', 'Culver City')"/>
  </condition>
</where>

이 구문은 조건에 두 개 이상의 데이터가 사용되는 경우 쿼리를 단순화합니다.

  • 링크 1-1 또는 N1: 테이블에 외래 키(링크가 테이블에서 시작)가 있으면 연결된 테이블의 필드를 필터링하거나 직접 검색할 수 있습니다.

    폴더 레이블의 필터 예:

    code language-none
    <where>
      <condition expr="[folder/@label] like 'Segment%'"/>
    </where>
    

    "nms:recipient" 스키마에서 폴더의 필드를 검색하려면 다음을 수행하십시오.

    code language-none
    <select>
      <!-- label of recipient folder -->
      <node expr="[folder/@label]"/>
      <!-- displays the string count of the folder -->
      <node expr="partition"/>
    </select>
    
  • 컬렉션 링크(1N): 컬렉션 테이블의 필드에 대한 필터링은 존재함 또는 존재하지 않음 연산자.

    '뉴스레터' 정보 서비스를 구독한 수신자를 필터링하려면 다음을 수행하십시오.

    code language-none
    <where>
      <condition expr="subscription" setOperator="EXISTS">
        <condition expr="@name = 'Newsletter'"/>
      </condition>
    </where>
    

    에서 컬렉션 링크 필드를 직접 검색 <select> 쿼리가 카디널을 반환하므로 절을 사용하지 않는 것이 좋습니다. 연결된 테이블에 하나의 레코드만 포함된 경우에만 사용됩니다(예 <node expr="">).

    "구독" 컬렉션 링크의 예:

    code language-none
    <select>
      <node expr="subscription/@label"/>
    </select>
    

    에서 컬렉션 링크의 요소가 포함된 하위 목록을 검색할 수 있습니다. <select> 절. 참조된 필드의 XPath는 컬렉션 요소의 컨텍스트에 따라 다릅니다.

    필터링( <orderby> ) 및 제한( <where> ) 요소를 컬렉션 요소에 추가할 수 있습니다.

    이 예제에서 각 수신자에 대해 쿼리는 수신자가 구독하는 이메일과 정보 서비스 목록을 반환합니다.

    code language-none
    <queryDef schema="nms:recipient" operation="select">
      <select>
        <node expr="@email"/>
    
        <!-- collection table (unbound type) -->
        <node expr="subscription">
          <node expr="[service/@label]"/>
          <!-- sub-condition on the collection table -->
          <where>
            <condition expr="@expirationDate >= GetDate()"/>
          </where>
          <orderBy>
            <node expr="@expirationDate"/>
          </orderBy>
        </node>
      </select>
    </queryDef>
    

'where' 및 'select' 절의 매개 변수 바인딩 binding-the-parameters-of-the--where--and--select--clause

매개 변수의 바인딩을 사용하면 엔진이 쿼리에 사용되는 매개 변수의 값을 설정할 수 있습니다. 이는 엔진이 값의 이스케이프를 담당하므로 매우 유용하며, 매개변수를 검색할 수 있도록 캐시의 추가 이점이 있습니다.

쿼리가 구성되면 "바인딩된" 값이 문자(? ODBC에서, #[index]# postgres…)에서 SQL 쿼리 본문으로 이동합니다.

<select>
  <!--the value will be bound by the engine -->
  <node expr="@startDate = #2002/02/01#"/>
  <!-- the value will not be bound by the engine but visible directly in the query -->
  <node expr="@startDate = #2002/02/01#" noSqlBind="true"/>
</select>

매개 변수를 바인딩하지 않으려면 "noSqlBind" 특성을 'true' 값으로 채워야 합니다.

IMPORTANT
쿼리에 "order-by" 또는 "group-by" 명령이 포함되어 있으면 데이터베이스 엔진이 값을 "바인딩"할 수 없습니다. 쿼리의 "select" 및/또는 "where" 지침에 @noSqlBind="true" 속성을 배치해야 합니다.

쿼리 작성 팁: query-building-tip-

쿼리의 구문에 도움이 되도록 Adobe Campaign 클라이언트 콘솔에서 일반 쿼리 편집기를 사용하여 쿼리를 작성할 수 있습니다( Tools/ Generic query editor… 메뉴)를 참조하십시오. 방법은 다음과 같습니다.

  1. 검색할 데이터 선택:

  2. 필터 조건을 정의합니다.

  3. 쿼리를 실행하고 Ctrl+F4를 눌러 쿼리 소스 코드를 봅니다.

출력 문서 형식 output-document-format

반환 매개 변수는 쿼리와 연결된 스키마 형식의 XML 문서입니다.

"get" 작업 시 "nms:recipient" 스키마에서 반환되는 반환의 예:

<recipient email="john.doe@adobe.com" lastName"Doe" firstName="John"/>

"select" 작업 시 반환되는 문서는 요소의 열거형입니다.

<!-- the name of the first element does not matter -->
<recipient-collection>
  <recipient email="john.doe@adobe.com" lastName"Doe" firstName="John"/>
  <recipient email="peter.martinez@adobe.com" lastName"Martinez" firstName="Peter"/>
  <recipient...
</recipient-collection>

"count" 유형 작업에 대해 반환된 문서의 예:

<recipient count="3"/>

앨리어스 alias

별칭을 사용하면 출력 문서의 데이터 위치를 수정할 수 있습니다. 다음 별칭 속성은 해당 필드에 XPath를 지정해야 합니다.

<queryDef schema="nms:recipient" operation="get">
  <select>
    <node expr="@firstName" alias="@firstName"/>
    <node expr="@lastName"/>
    <node expr="[folder/@label]" alias="@My_folder"/>
  </select>
</queryDef>

반환:

<recipient My_folder="Recipients" First name ="John" lastName="Doe"/>

대신:

<recipient firstName="John" lastName="Doe">
  <folder label="Recipients"/>
</recipient>

SOAP 메시지의 예 example-of-soap-messages

  • 쿼리:

    code language-none
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='http://xml.apache.org/xml-soap' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
      <SOAP-ENV:Body>
        <ExecuteQuery xmlns='urn:xtk:queryDef' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
          <__sessiontoken xsi:type='xsd:string'/>
          <entity xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
            <queryDef operation="get" schema="nms:recipient" xtkschema="xtk:queryDef">
              <select>
                <node expr="@email"/>
                <node expr="@lastName"/>
                <node expr="@firstName"/>
              </select>
              <where>
                <condition expr="@id = 3599"/>
              </where>
            </queryDef>
          </entity>
        </ExecuteQuery>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    
  • 응답:

    code language-none
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='http://xml.apache.org/xml-soap' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
      <SOAP-ENV:Body>
        <ExecuteQueryResponse xmlns='urn:xtk:queryDef' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
          <pdomOutput xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
            <recipient email="john.doe@adobe.com" lastName"Doe" firstName="John"/>
          </pdomOutput>
        </ExecuteQueryResponse>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

쓰기/쓰기 컬렉션(xtk:session) write---writecollection--xtk-session-

이러한 서비스는 엔티티("Write" 메서드) 또는 엔티티 컬렉션("WriteCollection" 메서드)을 삽입, 업데이트 또는 삭제하는 데 사용됩니다.

업데이트할 엔티티는 데이터 스키마와 연결됩니다. 입력 매개 변수는 인증 문자열(로그인해야 함)과 업데이트할 데이터가 포함된 XML 문서입니다.

이 문서는 작성 절차 구성을 위한 지침에 의해 보완됩니다.

이 호출은 오류를 제외하고 데이터를 반환하지 않습니다.

"xtk:session" 스키마의 "Write" 및 "WriteCollection" 메서드에 대한 정의:

<method name="Write" static="true">
  <parameters>
    <param name="doc" type="DOMDocument" desc="Difference document"/>
  </parameters>
</method>
<method name="WriteCollection" static="true">
  <parameters>
    <param name="doc" type="DOMDocument" desc="Difference collection document"/>
  </parameters>
</method>
NOTE
이는 "정적" 메서드입니다. 입력 매개변수는 업데이트할 스키마 형식으로 XML 문서에 포함됩니다.

개요 overview

데이터 조정은 연결된 스키마에 입력된 키의 정의를 기반으로 작동합니다. 쓰기 절차는 입력 문서에 입력된 데이터를 기반으로 첫 번째 적격 키를 찾습니다. 엔티티는 데이터베이스에서의 존재 여부에 따라 삽입되거나 업데이트됩니다.

업데이트할 엔티티 스키마의 키는 다음을 기반으로 완성됩니다. xtkschema 특성.

따라서 조정 키는 _key 키를 구성하는 XPath 목록을 포함하는 속성(쉼표로 구분).

을(를) 채워 작업 유형을 강제 적용할 수 있습니다. 작업(_o) 다음 값이 있는 속성:

  • 삽입: 레코드를 강제 삽입합니다(조정 키가 사용되지 않음),
  • 삽입 또는 업데이트: 조정 키(기본 모드)에 따라 레코드를 업데이트하거나 삽입합니다.
  • 업데이트: 레코드를 업데이트합니다. 데이터가 없는 경우 아무 작업도 하지 않습니다.
  • 삭제: 레코드를 삭제합니다.
  • 없음: 업데이트 또는 삽입 없이 링크 조정에만 사용됩니다.

'Write' 메서드를 사용한 예 example-with-the--write--method

이메일 주소, 생년월일 및 도시를 사용하여 수신자 업데이트 또는 삽입 (암시적 "insertOrUpdate" 작업):

<recipient xtkschema="nms:recipient" email="john.doe@adobe.com" birthDate="1956/05/04" folder-id=1203 _key="@email, [@folder-id]">
  <location city="Newton"/>
</recipient>

수신자 삭제:

<recipient xtkschema="nms:recipient" _operation="delete" email="rene.dupont@adobe.com" folder-id=1203 _key="@email, [@folder-id]"/>
NOTE
삭제 작업의 경우 입력 문서에는 조정 키를 구성하는 필드만 포함되어야 합니다.

'WriteCollection' 메서드를 사용한 예 example-with-the--writecollection--method

여러 수신자에 대한 업데이트 또는 삽입:

<recipient-collection xtkschema="nms:recipient">
  <recipient email="john.doe@adobe.com" firstName="John" lastName="Doe" _key="@email"/>
  <recipient email="peter.martinez@adobe.com" firstName="Peter" lastName="Martinez" _key="@email"/>
  <recipient ...
</recipient-collection>

예제 1 example-1

내부 이름(@name)을 기반으로 폴더를 수신자와 연결합니다.

<recipient _key="[folder/@name], @email" email="john.doe@adobe.net" lastName="Doe" firstName="John" xtkschema="nms:recipient">
  <folder name="Folder2" _operation="none"/>
</recipient>

연결된 요소에 "_key" 및 "_operation" 속성을 입력할 수 있습니다. 이 요소의 동작은 입력 스키마의 주 요소와 동일합니다.

기본 엔터티("nms:recipient")의 키 정의는 연결된 테이블(요소)의 필드로 구성됩니다 <folder> 스키마 "xtk:folder") 및 이메일입니다.

NOTE
폴더 요소에 입력한 작업 "없음"은 업데이트 또는 삽입 없이 폴더에 대한 조정을 정의합니다.

예제 2 example-2

수신자로부터 회사("cus:company" 스키마의 연결된 테이블) 업데이트:

<recipient _key="[folder/@name], @email" email="john.doe@adobe.net" lastName="Doe" firstName="John" xtkschema="nms:recipient">
  <company name="adobe" code="ERT12T" _key="@name" _operation="update"/>
</recipient>

예제 3 example-3

그룹 관계 테이블("nms:rcpGrpRel")을 사용하여 그룹에 수신자 추가:

<recipient _key="@email" email="martin.ledger@adobe.net" xtkschema="nms:recipient">
  <rcpGrpRel _key="[rcpGroup/@name]">
    <rcpGroup name="GRP1"/>
  </rcpGrpRel>
</recipient>
NOTE
키에 대한 정의가 <rcpgroup> 요소는 그룹 이름을 기반으로 하는 암시적 키가 "nms:group" 스키마에 정의되어 있기 때문입니다.

XML 컬렉션 요소 xml-collection-elements

기본적으로 XML 컬렉션 요소를 업데이트하려면 모든 컬렉션 요소를 채워야 합니다. 데이터베이스의 데이터가 입력 문서의 데이터로 바뀝니다. 문서에 업데이트할 요소만 있는 경우 데이터베이스의 XML 데이터로 병합을 강제하려면 업데이트할 모든 컬렉션 요소에 "_operation" 속성을 채워야 합니다.

SOAP 메시지의 예 example-of-soap-messages-1

  • 쿼리:

    code language-none
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='http://xml.apache.org/xml-soap' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
      <SOAP-ENV:Body>
        <Write xmlns='urn:xtk:persist' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
          <__sessiontoken xsi:type='xsd:string'/>
          <domDoc xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
            <recipient xtkschema="nms:recipient" email="rene.dupont@adobe.com" firstName="René" lastName="Dupont" _key="@email">
          </domDoc>
        </Write>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    
  • 응답:

    code language-none
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='http://xml.apache.org/xml-soap' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
      <SOAP-ENV:Body>
        <WriteResponse xmlns='urn:' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
        </WriteResponse>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

    오류가 있는 반환:

    code language-none
    <?xml version='1.0'?>
    <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
      <SOAP-ENV:Body>
        <SOAP-ENV:Fault>
          <faultcode>SOAP-ENV:Server</faultcode>
          <faultstring xsi:type="xsd:string">Error while executing the method 'Write' of service 'xtk:persist'.</faultstring>
          <detail xsi:type="xsd:string">PostgreSQL error: ERROR:  duplicate key violates unique constraint &quot;nmsrecipient_id&quot;Impossible to save document of type 'Recipients (nms:recipient)'</detail>
        </SOAP-ENV:Fault>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    
recommendation-more-help
601d79c3-e613-4db3-889a-ae959cd9e3e1