Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

Can't write rows from external account via http soap request

Avatar

Level 2

Hi!

We have an internal system that is trying to write data to a table in adobe campaign via our WSDL using HTTP request.

I created a external account based on their credentials that they use, and with that accountName and Password I am able to create a sessionToken using xtk:session#Logon. 

 

But when I use the sessionToken together with the data that is being sent in, Im not able to create a row successfully:

 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <createdropOnVehicle xmlns="urn:bf:dropOnVehicle">
      <sessiontoken>___E826F79B-DB2B-4B7xxxxxxxxxx</sessiontoken>
      <personalNumber>197504xxxxxx</personalNumber>
      <objectRegistrationNumber>YJHxxxx</objectRegistrationNumber>
      <status>START</status>
    </createdropOnVehicle>
  </soap:Body>

 

 
I get this answer:

 

<?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:ns='urn:bf:dropOnVehicle' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
    <SOAP-ENV:Body>
        <createdropOnVehicleResponse xmlns='urn:bf:dropOnVehicle' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
            <Id xsi:type='xsd:int'>0</Id>
        </createdropOnVehicleResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>​


I did the same but with my Operator user Name and Password, and with that sessionToken it works fine.

 

 
Do you know what might be the issue? Is it something with access?
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @MartinviGustaf ,

 

What do you mean by "external account" you created ? If it's "nms:externalAccount" object, this is not for your need. The external accounts are the objects that allow to configure several way to connect Adobe Campaign to external systems (MID sourcing, FTP, HTTP, POP3, extenal Databases etc.). Those are not the account to use for action or SOAP Call to Adobe Campaign AC

What you need to use Soap Call is an operator (xtk:operator). You'll find this in Administration/Access management/Operator. You also have to give the good right to the user. You can use the logon method (with soap) to get a security token and use it, or use the token "username/password" (not sure but it used to work before)

 

Cedric

View solution in original post

2 Replies

Avatar

Community Advisor

Can you trying putting userID and Password(replace this with actual credentials) in your Input call and see if this giving same result? 

<sessiontoken>userid/password</sessiontoken>

Avatar

Correct answer by
Community Advisor

Hi @MartinviGustaf ,

 

What do you mean by "external account" you created ? If it's "nms:externalAccount" object, this is not for your need. The external accounts are the objects that allow to configure several way to connect Adobe Campaign to external systems (MID sourcing, FTP, HTTP, POP3, extenal Databases etc.). Those are not the account to use for action or SOAP Call to Adobe Campaign AC

What you need to use Soap Call is an operator (xtk:operator). You'll find this in Administration/Access management/Operator. You also have to give the good right to the user. You can use the logon method (with soap) to get a security token and use it, or use the token "username/password" (not sure but it used to work before)

 

Cedric