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

SOAP API call error

Avatar

Avatar
Give Back
Level 2
alik98709228
Level 2

Likes

3 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
alik98709228
Level 2

Likes

3 likes

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 3
Boost 1
View profile
alik98709228
Level 2

01-04-2018

Hello,

We are testing a SOAP API call to add a new record/email in a subscription but getting an error.  It was working before but now we are getting an error. The error says “that record does not exist”, so somehow the script is looking for an existing record instead of adding a new record. If you see the script below, they are using optIn=”1” which I thought would add a new record.

We are testing this in our DEV environment. See below the Request and Response. Can you look into this?

Request:

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:nms:recipient"><SOAP-ENV:Body><ManageSubscription><sessiontoken>___833b4a4a-8675-45c0-8694-706def530d1f</sessiontoken><source>Micros</source><email>abasanskii+129@gorillagroup.com</email><neolaneServiceName><subscription name="tvEcommerce" optIn="1"/></neolaneServiceName><recipient emailFormat="2" firstname="QA" lastname="Basanskii" preferredStore="" birthMonth="10" tvRewardsCardNum="111" diySkillLevel="1"><location zipCode="60604-4136"/></recipient></ManageSubscription></SOAP-ENV:Body></SOAP-ENV:Envelope>

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 'ManageSubscription' of service 'nms:recipient'.</faultstring><detail xsi:type='xsd:string'>WDB-200001 SQL statement 'SELECT R0.iRecipientId, R0.sFirstName FROM NmsRecipient R0 WHERE (R0.sEmail = :#(1)#)' could not be executed.

  Param(0)=abasanskii+129@gorillagroup.com

WDB-200011 The requested database record does not exist.

Cannot load document of type 'Recipients (nms:recipient)' satisfying condition '([/@email] = 'abasanskii+129@gorillagroup.com')'.

SOP-330011 Error while executing the method 'ExecuteQuery' of service 'xtk:queryDef'.</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

09-05-2018

Hi,

Any update on your issue?

Florent

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

18-04-2018

Hi,

When you say it was working before, is it with the exact same code and method?

Or did something change in your approach or in your code?

Florent