Authenticating SOAP API via UsernameTokenMultiple Filters in SOAP APIRetrieve email object from folder via soap APIUpdating Triggers via the SOAP APISOAP API error anyTypeData Extract Requests via SOAP APICannot retrieve FilterActivity object via SOAP APIProblem authenticating w/SOAP and Access TokenQuery Activity Execution Issue via SOAP API Marketing CloudMaking SOAP Calls via SSJSRetrieve DE fields in order via SOAP API
Repurpose telephone line to ethernet
Is Eldritch Blast affected by antimagic field
Color the polygons in PolyhedronData
Why don't sharp and flat root note chords seem to be present in much guitar music?
Would it be illegal for Facebook to actively promote a political agenda?
How does the Saturn V Dynamic Test Stand work?
Church Booleans
Why doesn't mathematics collapse down, even though humans quite often make mistakes in their proofs?
Have only girls been born for a long time in this village?
Is a butterfly one or two animals?
Why should someone be willing to write a strong recommendation even if that means losing a undergraduate from their lab?
Infinite loop in CURSOR
How could China have extradited people for political reason under the extradition law it wanted to pass in Hong Kong?
How to avoid using System.String with Rfc2898DeriveBytes in C#
I think my coworker went through my notebook and took my project ideas
Are illustrations in novels frowned upon?
How to create a summation symbol with a vertical bar?
What is the evidence on the danger of feeding whole blueberries and grapes to infants and toddlers?
Is there any road between the CA State Route 120 and Sherman Pass Road (Forest Route 22S0) that crosses Yosemite/Serria/Sequoia National Park/Forest?
Should my "average" PC be able to discern the potential of encountering a gelatinous cube from subtle clues?
Earliest evidence of objects intended for future archaeologists?
Is it appropriate for a business to ask me for my credit report?
Nuclear decay triggers
Sous vide chicken without an internal temperature of 165
Authenticating SOAP API via UsernameToken
Multiple Filters in SOAP APIRetrieve email object from folder via soap APIUpdating Triggers via the SOAP APISOAP API error anyTypeData Extract Requests via SOAP APICannot retrieve FilterActivity object via SOAP APIProblem authenticating w/SOAP and Access TokenQuery Activity Execution Issue via SOAP API Marketing CloudMaking SOAP Calls via SSJSRetrieve DE fields in order via SOAP API
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
So I have tested about every way I can think of and I can no longer get the UsernameToken authentication to work in ANY account. I get the same error of An invalid security token was provided
. This is not saying the User/Pass is invalid - that is a different error, saying something like 'Login failed'.
Has there been an update to this that is not in the documentation or any other similar changes? Perhaps there is a permission or business rule on SFMC end that is now turned off by default or a new layout/structure for these security requests?
Please note that I tested this with an admin user with full permission sets, so it should not be an issue with my available permission settings.
I know this cannot be a universal thing as I believe there would be a bit more of an outcry on this - so hoping its just me being dumb and missing something small.
I have tried this call using the oauth token and it worked perfectly, so I know it is not the call or anything in the envelope outside the authentication. The second I change it back to UsernameToken authentication, it sends me that error again.
Here is a sample using a simple describe call to help eliminate almost any other possibility of issues in the call's body:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">
<o:UsernameToken>
<o:Username>myUserName</o:Username>
<o:Password>myPassWord</o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DefinitionRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<DescribeRequests>
<ObjectDefinitionRequest>
<ObjectType>AutomationInstance</ObjectType>
</ObjectDefinitionRequest>
</DescribeRequests>
</DefinitionRequestMsg>
</s:Body>
</s:Envelope>
marketing-cloud soap-api
add a comment |
So I have tested about every way I can think of and I can no longer get the UsernameToken authentication to work in ANY account. I get the same error of An invalid security token was provided
. This is not saying the User/Pass is invalid - that is a different error, saying something like 'Login failed'.
Has there been an update to this that is not in the documentation or any other similar changes? Perhaps there is a permission or business rule on SFMC end that is now turned off by default or a new layout/structure for these security requests?
Please note that I tested this with an admin user with full permission sets, so it should not be an issue with my available permission settings.
I know this cannot be a universal thing as I believe there would be a bit more of an outcry on this - so hoping its just me being dumb and missing something small.
I have tried this call using the oauth token and it worked perfectly, so I know it is not the call or anything in the envelope outside the authentication. The second I change it back to UsernameToken authentication, it sends me that error again.
Here is a sample using a simple describe call to help eliminate almost any other possibility of issues in the call's body:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">
<o:UsernameToken>
<o:Username>myUserName</o:Username>
<o:Password>myPassWord</o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DefinitionRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<DescribeRequests>
<ObjectDefinitionRequest>
<ObjectType>AutomationInstance</ObjectType>
</ObjectDefinitionRequest>
</DescribeRequests>
</DefinitionRequestMsg>
</s:Body>
</s:Envelope>
marketing-cloud soap-api
add a comment |
So I have tested about every way I can think of and I can no longer get the UsernameToken authentication to work in ANY account. I get the same error of An invalid security token was provided
. This is not saying the User/Pass is invalid - that is a different error, saying something like 'Login failed'.
Has there been an update to this that is not in the documentation or any other similar changes? Perhaps there is a permission or business rule on SFMC end that is now turned off by default or a new layout/structure for these security requests?
Please note that I tested this with an admin user with full permission sets, so it should not be an issue with my available permission settings.
I know this cannot be a universal thing as I believe there would be a bit more of an outcry on this - so hoping its just me being dumb and missing something small.
I have tried this call using the oauth token and it worked perfectly, so I know it is not the call or anything in the envelope outside the authentication. The second I change it back to UsernameToken authentication, it sends me that error again.
Here is a sample using a simple describe call to help eliminate almost any other possibility of issues in the call's body:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">
<o:UsernameToken>
<o:Username>myUserName</o:Username>
<o:Password>myPassWord</o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DefinitionRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<DescribeRequests>
<ObjectDefinitionRequest>
<ObjectType>AutomationInstance</ObjectType>
</ObjectDefinitionRequest>
</DescribeRequests>
</DefinitionRequestMsg>
</s:Body>
</s:Envelope>
marketing-cloud soap-api
So I have tested about every way I can think of and I can no longer get the UsernameToken authentication to work in ANY account. I get the same error of An invalid security token was provided
. This is not saying the User/Pass is invalid - that is a different error, saying something like 'Login failed'.
Has there been an update to this that is not in the documentation or any other similar changes? Perhaps there is a permission or business rule on SFMC end that is now turned off by default or a new layout/structure for these security requests?
Please note that I tested this with an admin user with full permission sets, so it should not be an issue with my available permission settings.
I know this cannot be a universal thing as I believe there would be a bit more of an outcry on this - so hoping its just me being dumb and missing something small.
I have tried this call using the oauth token and it worked perfectly, so I know it is not the call or anything in the envelope outside the authentication. The second I change it back to UsernameToken authentication, it sends me that error again.
Here is a sample using a simple describe call to help eliminate almost any other possibility of issues in the call's body:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">
<o:UsernameToken>
<o:Username>myUserName</o:Username>
<o:Password>myPassWord</o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DefinitionRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<DescribeRequests>
<ObjectDefinitionRequest>
<ObjectType>AutomationInstance</ObjectType>
</ObjectDefinitionRequest>
</DescribeRequests>
</DefinitionRequestMsg>
</s:Body>
</s:Envelope>
marketing-cloud soap-api
marketing-cloud soap-api
asked Aug 7 at 13:01
GortoningtonGortonington
13.9k1 gold badge14 silver badges35 bronze badges
13.9k1 gold badge14 silver badges35 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Of course within minutes of posting the question, I find the issue. I did not have the 'Enable Username and Password for Web Services' setting turned on.
This IS explicitly stated in the docs, I just missed it. I wanted to share my dumbness just in case anyone else has this issue.
Enable the username and password security setting. Go to Setup |
Security | Security Settings and find the setting under Username and
Logins.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "459"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f272695%2fauthenticating-soap-api-via-usernametoken%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Of course within minutes of posting the question, I find the issue. I did not have the 'Enable Username and Password for Web Services' setting turned on.
This IS explicitly stated in the docs, I just missed it. I wanted to share my dumbness just in case anyone else has this issue.
Enable the username and password security setting. Go to Setup |
Security | Security Settings and find the setting under Username and
Logins.
add a comment |
Of course within minutes of posting the question, I find the issue. I did not have the 'Enable Username and Password for Web Services' setting turned on.
This IS explicitly stated in the docs, I just missed it. I wanted to share my dumbness just in case anyone else has this issue.
Enable the username and password security setting. Go to Setup |
Security | Security Settings and find the setting under Username and
Logins.
add a comment |
Of course within minutes of posting the question, I find the issue. I did not have the 'Enable Username and Password for Web Services' setting turned on.
This IS explicitly stated in the docs, I just missed it. I wanted to share my dumbness just in case anyone else has this issue.
Enable the username and password security setting. Go to Setup |
Security | Security Settings and find the setting under Username and
Logins.
Of course within minutes of posting the question, I find the issue. I did not have the 'Enable Username and Password for Web Services' setting turned on.
This IS explicitly stated in the docs, I just missed it. I wanted to share my dumbness just in case anyone else has this issue.
Enable the username and password security setting. Go to Setup |
Security | Security Settings and find the setting under Username and
Logins.
answered Aug 7 at 13:11
GortoningtonGortonington
13.9k1 gold badge14 silver badges35 bronze badges
13.9k1 gold badge14 silver badges35 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Salesforce Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f272695%2fauthenticating-soap-api-via-usernametoken%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown