Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Is there a way to write multiple records in to adobe campaign AKA nolan

Avatar

Avatar
Validate 1
Level 1
srinivas_reddyo
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
srinivas_reddyo
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
srinivas_reddyo
Level 1

21-01-2019

Hi All ,

I am trying to consume API exposed by adobe campaign . I want to write multiple records in one single API call.

I have my below soap message which I am trying to send

Request :

<?xml version='1.0' encoding='ISO-8859-1'?>

<soapenv:Envelope

xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'

xmlns:urn='urn:xtk:session'>

<soapenv:Header/>

<soapenv:Body>

<urn:Write>

<urn:sessiontoken>___8df4fd29-3dd5-4e59-9f35-bbf2a5905b18</urn:sessiontoken>

<urn:domDoc>

<welcomeSubscriberapi _operation='insertOrUpdate' xtkschema='cnet:welcomeSubscriberapi' _key='@emailAddress' firstName='adasd' lastName='adasd' emailAddress ='testData@gmail.com' segmentValue ='For_Home' country ='us' language = 'en' newSubscriber ='No'></welcomeSubscriberapi>

<welcomeSubscriberapi _operation='insertOrUpdate' xtkschema='cnet:welcomeSubscriberapi' _key='@emailAddress' firstName='abcded' lastName='efgh' emailAddress ='testData12@gmail.com' segmentValue ='MEMBER' country ='us' language = 'en' newSubscriber ='No'></welcomeSubscriberapi>

</urn:domDoc>

</urn:Write>

</soapenv:Body>

</soapenv:Envelope>

but  I get below error response back

Response :

<?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'>SOP-330011 Error while executing the method 'Write' of service 'xtk:persist'.</faultstring>

<detail xsi:type='xsd:string'>SOP-330020 A 'document' parameter contains more than one root element.</detail>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

I am trying to follow below example provided in adobe campaign documentation website

<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>

please help me with this , I am kind of stuck.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

961 likes

Total Posts

1,090 posts

Correct Reply

509 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

961 likes

Total Posts

1,090 posts

Correct Reply

509 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

22-01-2019

Hi,

You're close. Use xtk:persist#WriteCollection for the SOAPAction:

Then it's just:

<SOAP-ENV:Body>

  <WriteCollection>

    <__sessiontoken></__sessiontoken>

    <domDoc>

      <welcomeSubscriberapi-collection xtkschema="cnet:welcomeSubscriberapi">

        <welcomeSubscriberapi _operation='insertOrUpdate' xtkschema='cnet:welcomeSubscriberapi' _key='@emailAddress' firstName='adasd' lastName='adasd' emailAddress ='testData@gmail.com' segmentValue ='For_Home' country ='us' language = 'en' newSubscriber ='No'></welcomeSubscriberapi>

        <welcomeSubscriberapi _operation='insertOrUpdate' xtkschema='cnet:welcomeSubscriberapi' _key='@emailAddress' firstName='abcded' lastName='efgh' emailAddress ='testData12@gmail.com' segmentValue ='MEMBER' country ='us' language = 'en' newSubscriber ='No'></welcomeSubscriberapi>

      </welcomeSubscriberapi-collection>

    </domDoc>

  </WriteCollection>

</SOAP-ENV:Body>

PS is this CNET CBSi?

Thanks,

-Jon

Answers (1)

Answers (1)

Avatar

Avatar
Validate 10
Level 3
priyankah586599
Level 3

Likes

23 likes

Total Posts

89 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 3
priyankah586599
Level 3

Likes

23 likes

Total Posts

89 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
priyankah586599
Level 3

03-10-2019

Hi Jon/Srinivas,

I am also trying to insert multiple records in single API call

Can you give me custom schema structure and SOAP UI message please.I am struggling from 3 days.

Thanks,

Priyanks