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;








3















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>









share|improve this question






























    3















    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>









    share|improve this question


























      3












      3








      3








      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>









      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 7 at 13:01









      GortoningtonGortonington

      13.9k1 gold badge14 silver badges35 bronze badges




      13.9k1 gold badge14 silver badges35 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          5














          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
          .




          enter image description here






          share|improve this answer



























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



            );













            draft saved

            draft discarded


















            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









            5














            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
            .




            enter image description here






            share|improve this answer





























              5














              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
              .




              enter image description here






              share|improve this answer



























                5












                5








                5







                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
                .




                enter image description here






                share|improve this answer













                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
                .




                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 7 at 13:11









                GortoningtonGortonington

                13.9k1 gold badge14 silver badges35 bronze badges




                13.9k1 gold badge14 silver badges35 bronze badges






























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form