Fatal error: Uncaught SoapFault exception: [2] Access deniedSOAP v2 catalogProductListOfAdditionalAttributes Uncaught SoapFault exception: Access DeniedProblems calling Magento SOAP V2 Service in C#Magento SOAP api errror: Access deniedFatal error: Uncaught SoapFault exception: [Client] looks like we got no XML documentMagento Fatal error: Uncaught SoapFault exception [HTTP] Internal Server ErrorMagento 1.9.2 get customer address using soap apiSoapFault exception: [1] Internal Error after upgrading to magento 1.9.3API Access denied and 403 errorUncaught SoapFault exception: [SOAP-ENV:Client] Error cannot find parameterre: SOAP Error on Magento 1.9.3.8 -

Blender 2.8 I can't see vertices, edges or faces in edit mode

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

What is the word for reserving something for yourself before others do?

Modeling an IP Address

How can I fix/modify my tub/shower combo so the water comes out of the showerhead?

What is a clear way to write a bar that has an extra beat?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Doing something right before you need it - expression for this?

Twin primes whose sum is a cube

How can I tell someone that I want to be his or her friend?

Infinite Abelian subgroup of infinite non Abelian group example

Should I tell management that I intend to leave due to bad software development practices?

In Romance of the Three Kingdoms why do people still use bamboo sticks when paper had already been invented?

Why does Kotter return in Welcome Back Kotter?

Arrow those variables!

How is it possible to have an ability score that is less than 3?

Why do bosons tend to occupy the same state?

Theorems that impeded progress

What is the most common color to indicate the input-field is disabled?

Forgetting the musical notes while performing in concert

Do I have a twin with permutated remainders?

I'm flying to France today and my passport expires in less than 2 months

Can one be a co-translator of a book, if he does not know the language that the book is translated into?

Why are electrically insulating heatsinks so rare? Is it just cost?



Fatal error: Uncaught SoapFault exception: [2] Access denied


SOAP v2 catalogProductListOfAdditionalAttributes Uncaught SoapFault exception: Access DeniedProblems calling Magento SOAP V2 Service in C#Magento SOAP api errror: Access deniedFatal error: Uncaught SoapFault exception: [Client] looks like we got no XML documentMagento Fatal error: Uncaught SoapFault exception [HTTP] Internal Server ErrorMagento 1.9.2 get customer address using soap apiSoapFault exception: [1] Internal Error after upgrading to magento 1.9.3API Access denied and 403 errorUncaught SoapFault exception: [SOAP-ENV:Client] Error cannot find parameterre: SOAP Error on Magento 1.9.3.8 -






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I am trying to login via soap from an external server



$api_url_v2 = "http://www.example.com/api/v2_soap/?wsdl=1";
$username = 'username';
$password = 'password';
$cli = new SoapClient($api_url_v2);
$session_id = $cli->login($username, $password);


The error message I get is Fatal error:




Uncaught SoapFault exception: [2] Access denied




However if I look in the api_user table in magento db, then the lognum column increments by 1 when I have the correct username / password combo... so it seems like the system knows the details are correct, but is giving me access denied.



The users role I have ticked all options for and assigned the role to the user



I can't seem to see many examples of this issue anywhere.



Has anyone come accross this issue, or can you provide any tips to solve?










share|improve this question






























    2















    I am trying to login via soap from an external server



    $api_url_v2 = "http://www.example.com/api/v2_soap/?wsdl=1";
    $username = 'username';
    $password = 'password';
    $cli = new SoapClient($api_url_v2);
    $session_id = $cli->login($username, $password);


    The error message I get is Fatal error:




    Uncaught SoapFault exception: [2] Access denied




    However if I look in the api_user table in magento db, then the lognum column increments by 1 when I have the correct username / password combo... so it seems like the system knows the details are correct, but is giving me access denied.



    The users role I have ticked all options for and assigned the role to the user



    I can't seem to see many examples of this issue anywhere.



    Has anyone come accross this issue, or can you provide any tips to solve?










    share|improve this question


























      2












      2








      2








      I am trying to login via soap from an external server



      $api_url_v2 = "http://www.example.com/api/v2_soap/?wsdl=1";
      $username = 'username';
      $password = 'password';
      $cli = new SoapClient($api_url_v2);
      $session_id = $cli->login($username, $password);


      The error message I get is Fatal error:




      Uncaught SoapFault exception: [2] Access denied




      However if I look in the api_user table in magento db, then the lognum column increments by 1 when I have the correct username / password combo... so it seems like the system knows the details are correct, but is giving me access denied.



      The users role I have ticked all options for and assigned the role to the user



      I can't seem to see many examples of this issue anywhere.



      Has anyone come accross this issue, or can you provide any tips to solve?










      share|improve this question
















      I am trying to login via soap from an external server



      $api_url_v2 = "http://www.example.com/api/v2_soap/?wsdl=1";
      $username = 'username';
      $password = 'password';
      $cli = new SoapClient($api_url_v2);
      $session_id = $cli->login($username, $password);


      The error message I get is Fatal error:




      Uncaught SoapFault exception: [2] Access denied




      However if I look in the api_user table in magento db, then the lognum column increments by 1 when I have the correct username / password combo... so it seems like the system knows the details are correct, but is giving me access denied.



      The users role I have ticked all options for and assigned the role to the user



      I can't seem to see many examples of this issue anywhere.



      Has anyone come accross this issue, or can you provide any tips to solve?







      api soap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 20 '15 at 13:57









      7ochem

      5,84493768




      5,84493768










      asked Sep 18 '13 at 21:48









      eleven11eleven11

      3004720




      3004720




















          5 Answers
          5






          active

          oldest

          votes


















          2














          Please try this connection code:



          $client = new SoapClient('http://magentohost/api/v2_soap?wsdl=1');
          $session = $client->login('apiUser', 'apiKey');


          I took it from the API Guidlines here:
          http://www.magentocommerce.com/api/soap/introduction.html#Introduction-SOAPAPIVersionv2



          I have also used this method on my stores for product retrieval and editting, however, are you on version 1.6.2? I know there is a role setting bug that doesnt allow you to set all roles.



          Suggestions:
          Provide version number, edition & url if possible.





          REVISION:

          $client = new SoapClient('http://www.comain.co.uk/api/v2_soap?wsdl=1');
          $session = $client->login('username', 'apikey');

          $result = $client->catalogInventoryStockItemList($session, array('27847')); // Products ID
          print_r($result);


          The above code has just been tested on my server which seems to be succesfull with this result:



          Array ( [0] => stdClass Object ( [product_id] => 27847 [sku] => VKC450O [qty] => 0.0000 [is_in_stock] => 1 ) )


          Let me know how you get on.






          share|improve this answer

























          • Thats the same code as i am already using right? Magento version 1.7.0.2

            – eleven11
            Sep 18 '13 at 22:44











          • Yes, without using lots of variables, and keeping it simpler, could you provide url link? Also, are you in WS-I COMPLIANCE mode or not?

            – Adam Kernig
            Sep 18 '13 at 22:45












          • WS-I COMPLIANCE - No.. But this is an issue with logging in, not anything to do with requests or XML formats

            – eleven11
            Sep 18 '13 at 23:57











          • I have editted my answer

            – Adam Kernig
            Sep 19 '13 at 9:03






          • 3





            ok i fixed it... In this table api_role.. There was an entry for a user (role_type = U). For each one of these users, there needs to be a role_id (role_type = G) that has an id of the users parent_id.. So i deleted the user with no referenced parent and it fixed the issue

            – eleven11
            Sep 19 '13 at 14:17



















          0














          ini_set("soap.wsdl_cache_enabled", "0");
          $client = new SoapClient(
          'http://127.0.0.1/magento/api/v2_soap/?wsdl'
          );

          $session = $client->login('imran', '654321imran');

          $result = $client->catalogProductList($session,'sku');

          print_r($result->product_id);

          $client->endSession($session);





          share|improve this answer




















          • 1





            It would be much better if you provide some explanation as well with the code.

            – Prateek
            Oct 20 '15 at 13:00


















          0














          One idea: load the WSDL-config with cUrl like this example and try it again:



          // GET SOAP-WSDL AS TEMP-FILE
          // ==========================

          $objCURL = curl_init([API-URL]); // Set API-URL
          curl_setopt($objCURL,CURLOPT_RETURNTRANSFER, true);
          $strWSDLFile = curl_exec($objCURL);
          curl_close($objCURL);

          file_put_contents('wsdl_temp.xml',$strWSDLFile);

          // INIT SOAP-SESSION
          // =================

          try
          $soap = new SoapClient('wsdl_temp.xml');
          $soapSession = $soap->login([API-User], [API-Key]);
          catch(Exception $e)
          var_dump($e);



          This solves all MY problems with the API. :-)






          share|improve this answer






























            0














            The solution is to

            1. create a new SOAP/XML-RPX Roles, say "Test"

            2. in Role Resources just select "All" for Resource Access (just for testing)

            3. Edit the user and assign the Role to "Test"






            share|improve this answer






























              0














              SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



              In fact, if I use Soap in http://localhost/.... it works, the connection is successful, but if I use same methods with in external IP and a port (like http://82.82.10.10:8080/...) returns this error:



              Fatal error: Uncaught SoapFault exception: [HTTP] Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



              SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



              The firewall is disabled, the ports are open. I do not know what to look for.






              share|improve this answer








              New contributor




              Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




















                Your Answer








                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "479"
                ;
                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%2fmagento.stackexchange.com%2fquestions%2f8187%2ffatal-error-uncaught-soapfault-exception-2-access-denied%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                5 Answers
                5






                active

                oldest

                votes








                5 Answers
                5






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                2














                Please try this connection code:



                $client = new SoapClient('http://magentohost/api/v2_soap?wsdl=1');
                $session = $client->login('apiUser', 'apiKey');


                I took it from the API Guidlines here:
                http://www.magentocommerce.com/api/soap/introduction.html#Introduction-SOAPAPIVersionv2



                I have also used this method on my stores for product retrieval and editting, however, are you on version 1.6.2? I know there is a role setting bug that doesnt allow you to set all roles.



                Suggestions:
                Provide version number, edition & url if possible.





                REVISION:

                $client = new SoapClient('http://www.comain.co.uk/api/v2_soap?wsdl=1');
                $session = $client->login('username', 'apikey');

                $result = $client->catalogInventoryStockItemList($session, array('27847')); // Products ID
                print_r($result);


                The above code has just been tested on my server which seems to be succesfull with this result:



                Array ( [0] => stdClass Object ( [product_id] => 27847 [sku] => VKC450O [qty] => 0.0000 [is_in_stock] => 1 ) )


                Let me know how you get on.






                share|improve this answer

























                • Thats the same code as i am already using right? Magento version 1.7.0.2

                  – eleven11
                  Sep 18 '13 at 22:44











                • Yes, without using lots of variables, and keeping it simpler, could you provide url link? Also, are you in WS-I COMPLIANCE mode or not?

                  – Adam Kernig
                  Sep 18 '13 at 22:45












                • WS-I COMPLIANCE - No.. But this is an issue with logging in, not anything to do with requests or XML formats

                  – eleven11
                  Sep 18 '13 at 23:57











                • I have editted my answer

                  – Adam Kernig
                  Sep 19 '13 at 9:03






                • 3





                  ok i fixed it... In this table api_role.. There was an entry for a user (role_type = U). For each one of these users, there needs to be a role_id (role_type = G) that has an id of the users parent_id.. So i deleted the user with no referenced parent and it fixed the issue

                  – eleven11
                  Sep 19 '13 at 14:17
















                2














                Please try this connection code:



                $client = new SoapClient('http://magentohost/api/v2_soap?wsdl=1');
                $session = $client->login('apiUser', 'apiKey');


                I took it from the API Guidlines here:
                http://www.magentocommerce.com/api/soap/introduction.html#Introduction-SOAPAPIVersionv2



                I have also used this method on my stores for product retrieval and editting, however, are you on version 1.6.2? I know there is a role setting bug that doesnt allow you to set all roles.



                Suggestions:
                Provide version number, edition & url if possible.





                REVISION:

                $client = new SoapClient('http://www.comain.co.uk/api/v2_soap?wsdl=1');
                $session = $client->login('username', 'apikey');

                $result = $client->catalogInventoryStockItemList($session, array('27847')); // Products ID
                print_r($result);


                The above code has just been tested on my server which seems to be succesfull with this result:



                Array ( [0] => stdClass Object ( [product_id] => 27847 [sku] => VKC450O [qty] => 0.0000 [is_in_stock] => 1 ) )


                Let me know how you get on.






                share|improve this answer

























                • Thats the same code as i am already using right? Magento version 1.7.0.2

                  – eleven11
                  Sep 18 '13 at 22:44











                • Yes, without using lots of variables, and keeping it simpler, could you provide url link? Also, are you in WS-I COMPLIANCE mode or not?

                  – Adam Kernig
                  Sep 18 '13 at 22:45












                • WS-I COMPLIANCE - No.. But this is an issue with logging in, not anything to do with requests or XML formats

                  – eleven11
                  Sep 18 '13 at 23:57











                • I have editted my answer

                  – Adam Kernig
                  Sep 19 '13 at 9:03






                • 3





                  ok i fixed it... In this table api_role.. There was an entry for a user (role_type = U). For each one of these users, there needs to be a role_id (role_type = G) that has an id of the users parent_id.. So i deleted the user with no referenced parent and it fixed the issue

                  – eleven11
                  Sep 19 '13 at 14:17














                2












                2








                2







                Please try this connection code:



                $client = new SoapClient('http://magentohost/api/v2_soap?wsdl=1');
                $session = $client->login('apiUser', 'apiKey');


                I took it from the API Guidlines here:
                http://www.magentocommerce.com/api/soap/introduction.html#Introduction-SOAPAPIVersionv2



                I have also used this method on my stores for product retrieval and editting, however, are you on version 1.6.2? I know there is a role setting bug that doesnt allow you to set all roles.



                Suggestions:
                Provide version number, edition & url if possible.





                REVISION:

                $client = new SoapClient('http://www.comain.co.uk/api/v2_soap?wsdl=1');
                $session = $client->login('username', 'apikey');

                $result = $client->catalogInventoryStockItemList($session, array('27847')); // Products ID
                print_r($result);


                The above code has just been tested on my server which seems to be succesfull with this result:



                Array ( [0] => stdClass Object ( [product_id] => 27847 [sku] => VKC450O [qty] => 0.0000 [is_in_stock] => 1 ) )


                Let me know how you get on.






                share|improve this answer















                Please try this connection code:



                $client = new SoapClient('http://magentohost/api/v2_soap?wsdl=1');
                $session = $client->login('apiUser', 'apiKey');


                I took it from the API Guidlines here:
                http://www.magentocommerce.com/api/soap/introduction.html#Introduction-SOAPAPIVersionv2



                I have also used this method on my stores for product retrieval and editting, however, are you on version 1.6.2? I know there is a role setting bug that doesnt allow you to set all roles.



                Suggestions:
                Provide version number, edition & url if possible.





                REVISION:

                $client = new SoapClient('http://www.comain.co.uk/api/v2_soap?wsdl=1');
                $session = $client->login('username', 'apikey');

                $result = $client->catalogInventoryStockItemList($session, array('27847')); // Products ID
                print_r($result);


                The above code has just been tested on my server which seems to be succesfull with this result:



                Array ( [0] => stdClass Object ( [product_id] => 27847 [sku] => VKC450O [qty] => 0.0000 [is_in_stock] => 1 ) )


                Let me know how you get on.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 19 '13 at 9:04

























                answered Sep 18 '13 at 22:34









                Adam KernigAdam Kernig

                1588




                1588












                • Thats the same code as i am already using right? Magento version 1.7.0.2

                  – eleven11
                  Sep 18 '13 at 22:44











                • Yes, without using lots of variables, and keeping it simpler, could you provide url link? Also, are you in WS-I COMPLIANCE mode or not?

                  – Adam Kernig
                  Sep 18 '13 at 22:45












                • WS-I COMPLIANCE - No.. But this is an issue with logging in, not anything to do with requests or XML formats

                  – eleven11
                  Sep 18 '13 at 23:57











                • I have editted my answer

                  – Adam Kernig
                  Sep 19 '13 at 9:03






                • 3





                  ok i fixed it... In this table api_role.. There was an entry for a user (role_type = U). For each one of these users, there needs to be a role_id (role_type = G) that has an id of the users parent_id.. So i deleted the user with no referenced parent and it fixed the issue

                  – eleven11
                  Sep 19 '13 at 14:17


















                • Thats the same code as i am already using right? Magento version 1.7.0.2

                  – eleven11
                  Sep 18 '13 at 22:44











                • Yes, without using lots of variables, and keeping it simpler, could you provide url link? Also, are you in WS-I COMPLIANCE mode or not?

                  – Adam Kernig
                  Sep 18 '13 at 22:45












                • WS-I COMPLIANCE - No.. But this is an issue with logging in, not anything to do with requests or XML formats

                  – eleven11
                  Sep 18 '13 at 23:57











                • I have editted my answer

                  – Adam Kernig
                  Sep 19 '13 at 9:03






                • 3





                  ok i fixed it... In this table api_role.. There was an entry for a user (role_type = U). For each one of these users, there needs to be a role_id (role_type = G) that has an id of the users parent_id.. So i deleted the user with no referenced parent and it fixed the issue

                  – eleven11
                  Sep 19 '13 at 14:17

















                Thats the same code as i am already using right? Magento version 1.7.0.2

                – eleven11
                Sep 18 '13 at 22:44





                Thats the same code as i am already using right? Magento version 1.7.0.2

                – eleven11
                Sep 18 '13 at 22:44













                Yes, without using lots of variables, and keeping it simpler, could you provide url link? Also, are you in WS-I COMPLIANCE mode or not?

                – Adam Kernig
                Sep 18 '13 at 22:45






                Yes, without using lots of variables, and keeping it simpler, could you provide url link? Also, are you in WS-I COMPLIANCE mode or not?

                – Adam Kernig
                Sep 18 '13 at 22:45














                WS-I COMPLIANCE - No.. But this is an issue with logging in, not anything to do with requests or XML formats

                – eleven11
                Sep 18 '13 at 23:57





                WS-I COMPLIANCE - No.. But this is an issue with logging in, not anything to do with requests or XML formats

                – eleven11
                Sep 18 '13 at 23:57













                I have editted my answer

                – Adam Kernig
                Sep 19 '13 at 9:03





                I have editted my answer

                – Adam Kernig
                Sep 19 '13 at 9:03




                3




                3





                ok i fixed it... In this table api_role.. There was an entry for a user (role_type = U). For each one of these users, there needs to be a role_id (role_type = G) that has an id of the users parent_id.. So i deleted the user with no referenced parent and it fixed the issue

                – eleven11
                Sep 19 '13 at 14:17






                ok i fixed it... In this table api_role.. There was an entry for a user (role_type = U). For each one of these users, there needs to be a role_id (role_type = G) that has an id of the users parent_id.. So i deleted the user with no referenced parent and it fixed the issue

                – eleven11
                Sep 19 '13 at 14:17














                0














                ini_set("soap.wsdl_cache_enabled", "0");
                $client = new SoapClient(
                'http://127.0.0.1/magento/api/v2_soap/?wsdl'
                );

                $session = $client->login('imran', '654321imran');

                $result = $client->catalogProductList($session,'sku');

                print_r($result->product_id);

                $client->endSession($session);





                share|improve this answer




















                • 1





                  It would be much better if you provide some explanation as well with the code.

                  – Prateek
                  Oct 20 '15 at 13:00















                0














                ini_set("soap.wsdl_cache_enabled", "0");
                $client = new SoapClient(
                'http://127.0.0.1/magento/api/v2_soap/?wsdl'
                );

                $session = $client->login('imran', '654321imran');

                $result = $client->catalogProductList($session,'sku');

                print_r($result->product_id);

                $client->endSession($session);





                share|improve this answer




















                • 1





                  It would be much better if you provide some explanation as well with the code.

                  – Prateek
                  Oct 20 '15 at 13:00













                0












                0








                0







                ini_set("soap.wsdl_cache_enabled", "0");
                $client = new SoapClient(
                'http://127.0.0.1/magento/api/v2_soap/?wsdl'
                );

                $session = $client->login('imran', '654321imran');

                $result = $client->catalogProductList($session,'sku');

                print_r($result->product_id);

                $client->endSession($session);





                share|improve this answer















                ini_set("soap.wsdl_cache_enabled", "0");
                $client = new SoapClient(
                'http://127.0.0.1/magento/api/v2_soap/?wsdl'
                );

                $session = $client->login('imran', '654321imran');

                $result = $client->catalogProductList($session,'sku');

                print_r($result->product_id);

                $client->endSession($session);






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Oct 20 '15 at 12:57









                Marius

                168k28322688




                168k28322688










                answered Oct 20 '15 at 12:34









                user32284user32284

                1




                1







                • 1





                  It would be much better if you provide some explanation as well with the code.

                  – Prateek
                  Oct 20 '15 at 13:00












                • 1





                  It would be much better if you provide some explanation as well with the code.

                  – Prateek
                  Oct 20 '15 at 13:00







                1




                1





                It would be much better if you provide some explanation as well with the code.

                – Prateek
                Oct 20 '15 at 13:00





                It would be much better if you provide some explanation as well with the code.

                – Prateek
                Oct 20 '15 at 13:00











                0














                One idea: load the WSDL-config with cUrl like this example and try it again:



                // GET SOAP-WSDL AS TEMP-FILE
                // ==========================

                $objCURL = curl_init([API-URL]); // Set API-URL
                curl_setopt($objCURL,CURLOPT_RETURNTRANSFER, true);
                $strWSDLFile = curl_exec($objCURL);
                curl_close($objCURL);

                file_put_contents('wsdl_temp.xml',$strWSDLFile);

                // INIT SOAP-SESSION
                // =================

                try
                $soap = new SoapClient('wsdl_temp.xml');
                $soapSession = $soap->login([API-User], [API-Key]);
                catch(Exception $e)
                var_dump($e);



                This solves all MY problems with the API. :-)






                share|improve this answer



























                  0














                  One idea: load the WSDL-config with cUrl like this example and try it again:



                  // GET SOAP-WSDL AS TEMP-FILE
                  // ==========================

                  $objCURL = curl_init([API-URL]); // Set API-URL
                  curl_setopt($objCURL,CURLOPT_RETURNTRANSFER, true);
                  $strWSDLFile = curl_exec($objCURL);
                  curl_close($objCURL);

                  file_put_contents('wsdl_temp.xml',$strWSDLFile);

                  // INIT SOAP-SESSION
                  // =================

                  try
                  $soap = new SoapClient('wsdl_temp.xml');
                  $soapSession = $soap->login([API-User], [API-Key]);
                  catch(Exception $e)
                  var_dump($e);



                  This solves all MY problems with the API. :-)






                  share|improve this answer

























                    0












                    0








                    0







                    One idea: load the WSDL-config with cUrl like this example and try it again:



                    // GET SOAP-WSDL AS TEMP-FILE
                    // ==========================

                    $objCURL = curl_init([API-URL]); // Set API-URL
                    curl_setopt($objCURL,CURLOPT_RETURNTRANSFER, true);
                    $strWSDLFile = curl_exec($objCURL);
                    curl_close($objCURL);

                    file_put_contents('wsdl_temp.xml',$strWSDLFile);

                    // INIT SOAP-SESSION
                    // =================

                    try
                    $soap = new SoapClient('wsdl_temp.xml');
                    $soapSession = $soap->login([API-User], [API-Key]);
                    catch(Exception $e)
                    var_dump($e);



                    This solves all MY problems with the API. :-)






                    share|improve this answer













                    One idea: load the WSDL-config with cUrl like this example and try it again:



                    // GET SOAP-WSDL AS TEMP-FILE
                    // ==========================

                    $objCURL = curl_init([API-URL]); // Set API-URL
                    curl_setopt($objCURL,CURLOPT_RETURNTRANSFER, true);
                    $strWSDLFile = curl_exec($objCURL);
                    curl_close($objCURL);

                    file_put_contents('wsdl_temp.xml',$strWSDLFile);

                    // INIT SOAP-SESSION
                    // =================

                    try
                    $soap = new SoapClient('wsdl_temp.xml');
                    $soapSession = $soap->login([API-User], [API-Key]);
                    catch(Exception $e)
                    var_dump($e);



                    This solves all MY problems with the API. :-)







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 20 '15 at 13:34









                    SFreySFrey

                    1169




                    1169





















                        0














                        The solution is to

                        1. create a new SOAP/XML-RPX Roles, say "Test"

                        2. in Role Resources just select "All" for Resource Access (just for testing)

                        3. Edit the user and assign the Role to "Test"






                        share|improve this answer



























                          0














                          The solution is to

                          1. create a new SOAP/XML-RPX Roles, say "Test"

                          2. in Role Resources just select "All" for Resource Access (just for testing)

                          3. Edit the user and assign the Role to "Test"






                          share|improve this answer

























                            0












                            0








                            0







                            The solution is to

                            1. create a new SOAP/XML-RPX Roles, say "Test"

                            2. in Role Resources just select "All" for Resource Access (just for testing)

                            3. Edit the user and assign the Role to "Test"






                            share|improve this answer













                            The solution is to

                            1. create a new SOAP/XML-RPX Roles, say "Test"

                            2. in Role Resources just select "All" for Resource Access (just for testing)

                            3. Edit the user and assign the Role to "Test"







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 16 '16 at 19:54









                            darleysdarleys

                            1




                            1





















                                0














                                SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                In fact, if I use Soap in http://localhost/.... it works, the connection is successful, but if I use same methods with in external IP and a port (like http://82.82.10.10:8080/...) returns this error:



                                Fatal error: Uncaught SoapFault exception: [HTTP] Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                The firewall is disabled, the ports are open. I do not know what to look for.






                                share|improve this answer








                                New contributor




                                Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                Check out our Code of Conduct.
























                                  0














                                  SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                  In fact, if I use Soap in http://localhost/.... it works, the connection is successful, but if I use same methods with in external IP and a port (like http://82.82.10.10:8080/...) returns this error:



                                  Fatal error: Uncaught SoapFault exception: [HTTP] Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                  SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                  The firewall is disabled, the ports are open. I do not know what to look for.






                                  share|improve this answer








                                  New contributor




                                  Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                  Check out our Code of Conduct.






















                                    0












                                    0








                                    0







                                    SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                    In fact, if I use Soap in http://localhost/.... it works, the connection is successful, but if I use same methods with in external IP and a port (like http://82.82.10.10:8080/...) returns this error:



                                    Fatal error: Uncaught SoapFault exception: [HTTP] Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                    SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                    The firewall is disabled, the ports are open. I do not know what to look for.






                                    share|improve this answer








                                    New contributor




                                    Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.










                                    SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                    In fact, if I use Soap in http://localhost/.... it works, the connection is successful, but if I use same methods with in external IP and a port (like http://82.82.10.10:8080/...) returns this error:



                                    Fatal error: Uncaught SoapFault exception: [HTTP] Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                    SoapFault: Forbidden in C:Program Files (x86)Amppswwwsoapclass_01.php on line 128



                                    The firewall is disabled, the ports are open. I do not know what to look for.







                                    share|improve this answer








                                    New contributor




                                    Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.









                                    share|improve this answer



                                    share|improve this answer






                                    New contributor




                                    Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.









                                    answered 16 mins ago









                                    Cvasipedia CvasipediaCvasipedia Cvasipedia

                                    1




                                    1




                                    New contributor




                                    Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.





                                    New contributor





                                    Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.






                                    Cvasipedia Cvasipedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.



























                                        draft saved

                                        draft discarded
















































                                        Thanks for contributing an answer to Magento 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%2fmagento.stackexchange.com%2fquestions%2f8187%2ffatal-error-uncaught-soapfault-exception-2-access-denied%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

                                        Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                                        Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                                        How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2