SoapFault: looks like we got no XML document Magento and laravel2019 Community Moderator ElectionSOAP: looks like we got no XML documentMagento SOAP API - PHP Exception thrown for login method call: “looks like we got no XML document”SoapFault exception: [Client] looks like we got no XML documentreasons of SoapFault exception: [Client] looks like we got no XML documentMagento SOAP API: How to interact with it from fiddler?SoapFault: looks like we got no XML documentphp soap - SoapFault looks like we got no XML documentphp, force file download, php adds some html text to fileSoapFault: looks like we got no XML document php errorSoapFault: looks like we got no XML document in+PHP

What should I do when a paper is published similar to my PhD thesis without citation?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Either of .... (Plural/Singular)

Is there a math expression equivalent to the conditional ternary operator?

Is there a way to make cleveref distinguish two environments with the same counter?

Are E natural minor and B harmonic minor related?

Is it appropriate to ask a former professor to order a book for me through an inter-library loan?

What do you call someone who likes to pick fights?

Why is there an extra space when I type "ls" on the Desktop?

Why does Central Limit Theorem break down in my simulation?

Giving a career talk in my old university, how prominently should I tell students my salary?

Are these two graphs isomorphic? Why/Why not?

How do I increase the number of TTY consoles?

What does *dead* mean in *What do you mean, dead?*?

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

ESPP--any reason not to go all in?

Writing text next to a table

The (Easy) Road to Code

Is there stress on two letters on the word стоят

Can one live in the U.S. and not use a credit card?

Create chunks from an array

(Codewars) Linked Lists-Sorted Insert

Having the player face themselves after the mid-game

Computation logic of Partway in TikZ



SoapFault: looks like we got no XML document Magento and laravel



2019 Community Moderator ElectionSOAP: looks like we got no XML documentMagento SOAP API - PHP Exception thrown for login method call: “looks like we got no XML document”SoapFault exception: [Client] looks like we got no XML documentreasons of SoapFault exception: [Client] looks like we got no XML documentMagento SOAP API: How to interact with it from fiddler?SoapFault: looks like we got no XML documentphp soap - SoapFault looks like we got no XML documentphp, force file download, php adds some html text to fileSoapFault: looks like we got no XML document php errorSoapFault: looks like we got no XML document in+PHP










0















i am with a problem in my application Laravel, when i use the SoapClient, for example my_object_soap->login(); returned this error:




Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML




I already tried several solutions that I researched in google and here, but I did not solve my problem.



my code follows:



 ini_set("soap.wsdl_cache_enabled",0);
ini_set("soap.wsdl_cache",0);
ini_set("error_reporting",-1);
ini_set("display_errors","On");

$wsdl_url = "https://example.com/index.php/api/v2_soap/index/?wsdl";
$apiAuth = new stdClass();
$apiAuth->username = trim("myusermagento");
$apiAuth->apiKey = trim("mykeymagento");

try
$proxy = new SoapClient($wsdl_url,array('cache_wsdl' => WSDL_CACHE_NONE, 'trace' => true));
$session = $proxy->login($apiAuth);
$data = $session;
$status = true;
$responseStatus = 200;
catch(SoapFault $e)
$error = $e->getMessage();
$data = $proxy->__getLastResponse();
$status = false;
$responseStatus = 500;


return Response::json([
'success' => $status,
'data' => $data,
'erros'=> $error,
],$responseStatus);


I have no idea which a problem, when i tested in SoapUI, with this user and key, it's alright, but in my app not.



My magento version app is 1.6.2, and my php is 7.2, I already tried to downgrade to php 5.6 because it could be incompatibility with the magento version and my php but it still did not work.



Can someone help me?










share|improve this question









New contributor




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
























    0















    i am with a problem in my application Laravel, when i use the SoapClient, for example my_object_soap->login(); returned this error:




    Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML




    I already tried several solutions that I researched in google and here, but I did not solve my problem.



    my code follows:



     ini_set("soap.wsdl_cache_enabled",0);
    ini_set("soap.wsdl_cache",0);
    ini_set("error_reporting",-1);
    ini_set("display_errors","On");

    $wsdl_url = "https://example.com/index.php/api/v2_soap/index/?wsdl";
    $apiAuth = new stdClass();
    $apiAuth->username = trim("myusermagento");
    $apiAuth->apiKey = trim("mykeymagento");

    try
    $proxy = new SoapClient($wsdl_url,array('cache_wsdl' => WSDL_CACHE_NONE, 'trace' => true));
    $session = $proxy->login($apiAuth);
    $data = $session;
    $status = true;
    $responseStatus = 200;
    catch(SoapFault $e)
    $error = $e->getMessage();
    $data = $proxy->__getLastResponse();
    $status = false;
    $responseStatus = 500;


    return Response::json([
    'success' => $status,
    'data' => $data,
    'erros'=> $error,
    ],$responseStatus);


    I have no idea which a problem, when i tested in SoapUI, with this user and key, it's alright, but in my app not.



    My magento version app is 1.6.2, and my php is 7.2, I already tried to downgrade to php 5.6 because it could be incompatibility with the magento version and my php but it still did not work.



    Can someone help me?










    share|improve this question









    New contributor




    Diego Cunha 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








      i am with a problem in my application Laravel, when i use the SoapClient, for example my_object_soap->login(); returned this error:




      Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML




      I already tried several solutions that I researched in google and here, but I did not solve my problem.



      my code follows:



       ini_set("soap.wsdl_cache_enabled",0);
      ini_set("soap.wsdl_cache",0);
      ini_set("error_reporting",-1);
      ini_set("display_errors","On");

      $wsdl_url = "https://example.com/index.php/api/v2_soap/index/?wsdl";
      $apiAuth = new stdClass();
      $apiAuth->username = trim("myusermagento");
      $apiAuth->apiKey = trim("mykeymagento");

      try
      $proxy = new SoapClient($wsdl_url,array('cache_wsdl' => WSDL_CACHE_NONE, 'trace' => true));
      $session = $proxy->login($apiAuth);
      $data = $session;
      $status = true;
      $responseStatus = 200;
      catch(SoapFault $e)
      $error = $e->getMessage();
      $data = $proxy->__getLastResponse();
      $status = false;
      $responseStatus = 500;


      return Response::json([
      'success' => $status,
      'data' => $data,
      'erros'=> $error,
      ],$responseStatus);


      I have no idea which a problem, when i tested in SoapUI, with this user and key, it's alright, but in my app not.



      My magento version app is 1.6.2, and my php is 7.2, I already tried to downgrade to php 5.6 because it could be incompatibility with the magento version and my php but it still did not work.



      Can someone help me?










      share|improve this question









      New contributor




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












      i am with a problem in my application Laravel, when i use the SoapClient, for example my_object_soap->login(); returned this error:




      Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML




      I already tried several solutions that I researched in google and here, but I did not solve my problem.



      my code follows:



       ini_set("soap.wsdl_cache_enabled",0);
      ini_set("soap.wsdl_cache",0);
      ini_set("error_reporting",-1);
      ini_set("display_errors","On");

      $wsdl_url = "https://example.com/index.php/api/v2_soap/index/?wsdl";
      $apiAuth = new stdClass();
      $apiAuth->username = trim("myusermagento");
      $apiAuth->apiKey = trim("mykeymagento");

      try
      $proxy = new SoapClient($wsdl_url,array('cache_wsdl' => WSDL_CACHE_NONE, 'trace' => true));
      $session = $proxy->login($apiAuth);
      $data = $session;
      $status = true;
      $responseStatus = 200;
      catch(SoapFault $e)
      $error = $e->getMessage();
      $data = $proxy->__getLastResponse();
      $status = false;
      $responseStatus = 500;


      return Response::json([
      'success' => $status,
      'data' => $data,
      'erros'=> $error,
      ],$responseStatus);


      I have no idea which a problem, when i tested in SoapUI, with this user and key, it's alright, but in my app not.



      My magento version app is 1.6.2, and my php is 7.2, I already tried to downgrade to php 5.6 because it could be incompatibility with the magento version and my php but it still did not work.



      Can someone help me?







      php laravel apache ubuntu magento






      share|improve this question









      New contributor




      Diego Cunha 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 question









      New contributor




      Diego Cunha 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 question




      share|improve this question








      edited Mar 6 at 13:41







      Diego Cunha













      New contributor




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









      asked Mar 6 at 13:25









      Diego CunhaDiego Cunha

      11




      11




      New contributor




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





      New contributor





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






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






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Try this one, structure your request as follows



           $options = array('trace'=> true,'exceptions' => true); 
          $client = new SoapClient('https://www.example.com?wsdl',$options);

          $params = new stdClass();
          $params->key1 = 'XXXXXX';
          $params->Key2 = 'XXXXX';
          $soapVar = new SoapVar($params,SOAP_ENC_OBJECT);

          $header = new SoapHeader('https://www.example?wsdl','credentials',$soapVar);

          $client->__setSoapHeaders(array($header));


          $result=$client->login(function parameters here);


          Cheers!!!






          share|improve this answer























          • thanks, but this did not work, the same error persists!

            – Diego Cunha
            Mar 6 at 18:07











          • Don't forget to try/ catch your request error above occur if client get some invalid xml either the WSDL itself or the response returned.

            – Theodory Faustine
            2 days ago










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          );



          );






          Diego Cunha is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024223%2fsoapfault-looks-like-we-got-no-xml-document-magento-and-laravel%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









          0














          Try this one, structure your request as follows



           $options = array('trace'=> true,'exceptions' => true); 
          $client = new SoapClient('https://www.example.com?wsdl',$options);

          $params = new stdClass();
          $params->key1 = 'XXXXXX';
          $params->Key2 = 'XXXXX';
          $soapVar = new SoapVar($params,SOAP_ENC_OBJECT);

          $header = new SoapHeader('https://www.example?wsdl','credentials',$soapVar);

          $client->__setSoapHeaders(array($header));


          $result=$client->login(function parameters here);


          Cheers!!!






          share|improve this answer























          • thanks, but this did not work, the same error persists!

            – Diego Cunha
            Mar 6 at 18:07











          • Don't forget to try/ catch your request error above occur if client get some invalid xml either the WSDL itself or the response returned.

            – Theodory Faustine
            2 days ago















          0














          Try this one, structure your request as follows



           $options = array('trace'=> true,'exceptions' => true); 
          $client = new SoapClient('https://www.example.com?wsdl',$options);

          $params = new stdClass();
          $params->key1 = 'XXXXXX';
          $params->Key2 = 'XXXXX';
          $soapVar = new SoapVar($params,SOAP_ENC_OBJECT);

          $header = new SoapHeader('https://www.example?wsdl','credentials',$soapVar);

          $client->__setSoapHeaders(array($header));


          $result=$client->login(function parameters here);


          Cheers!!!






          share|improve this answer























          • thanks, but this did not work, the same error persists!

            – Diego Cunha
            Mar 6 at 18:07











          • Don't forget to try/ catch your request error above occur if client get some invalid xml either the WSDL itself or the response returned.

            – Theodory Faustine
            2 days ago













          0












          0








          0







          Try this one, structure your request as follows



           $options = array('trace'=> true,'exceptions' => true); 
          $client = new SoapClient('https://www.example.com?wsdl',$options);

          $params = new stdClass();
          $params->key1 = 'XXXXXX';
          $params->Key2 = 'XXXXX';
          $soapVar = new SoapVar($params,SOAP_ENC_OBJECT);

          $header = new SoapHeader('https://www.example?wsdl','credentials',$soapVar);

          $client->__setSoapHeaders(array($header));


          $result=$client->login(function parameters here);


          Cheers!!!






          share|improve this answer













          Try this one, structure your request as follows



           $options = array('trace'=> true,'exceptions' => true); 
          $client = new SoapClient('https://www.example.com?wsdl',$options);

          $params = new stdClass();
          $params->key1 = 'XXXXXX';
          $params->Key2 = 'XXXXX';
          $soapVar = new SoapVar($params,SOAP_ENC_OBJECT);

          $header = new SoapHeader('https://www.example?wsdl','credentials',$soapVar);

          $client->__setSoapHeaders(array($header));


          $result=$client->login(function parameters here);


          Cheers!!!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 6 at 15:51









          Theodory FaustineTheodory Faustine

          70110




          70110












          • thanks, but this did not work, the same error persists!

            – Diego Cunha
            Mar 6 at 18:07











          • Don't forget to try/ catch your request error above occur if client get some invalid xml either the WSDL itself or the response returned.

            – Theodory Faustine
            2 days ago

















          • thanks, but this did not work, the same error persists!

            – Diego Cunha
            Mar 6 at 18:07











          • Don't forget to try/ catch your request error above occur if client get some invalid xml either the WSDL itself or the response returned.

            – Theodory Faustine
            2 days ago
















          thanks, but this did not work, the same error persists!

          – Diego Cunha
          Mar 6 at 18:07





          thanks, but this did not work, the same error persists!

          – Diego Cunha
          Mar 6 at 18:07













          Don't forget to try/ catch your request error above occur if client get some invalid xml either the WSDL itself or the response returned.

          – Theodory Faustine
          2 days ago





          Don't forget to try/ catch your request error above occur if client get some invalid xml either the WSDL itself or the response returned.

          – Theodory Faustine
          2 days ago












          Diego Cunha is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Diego Cunha is a new contributor. Be nice, and check out our Code of Conduct.












          Diego Cunha is a new contributor. Be nice, and check out our Code of Conduct.











          Diego Cunha is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Stack Overflow!


          • 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%2fstackoverflow.com%2fquestions%2f55024223%2fsoapfault-looks-like-we-got-no-xml-document-magento-and-laravel%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

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved