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
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
php laravel apache ubuntu magento
New contributor
New contributor
edited Mar 6 at 13:41
Diego Cunha
New contributor
asked Mar 6 at 13:25
Diego CunhaDiego Cunha
11
11
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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!!!
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%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
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!!!
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
add a comment |
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!!!
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
add a comment |
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!!!
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!!!
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown