小编Eri*_*ick的帖子

php soapclient wsdl SOAP-ERROR:解析WSDL:无法加载

我用google搜索并在stackoverflow中查看,但我还没有找到解决我的具体问题的方法.我一直在收到错误

 SOAP-ERROR: Parsing WSDL: Couldnt load from "https://sampleurl.com/MerchantQueryService.asmx?WSDL" : failed to load external entity "https://sampleurl.com/MerchantQueryService.asmx?WSDL"
Run Code Online (Sandbox Code Playgroud)

我正在尝试使用带有URL的SOAP API

https://sampleurl.com/MerchantQueryService.asmx?WSDL 
Run Code Online (Sandbox Code Playgroud)

我在我的localhost上运行MAMP并使用godaddy共享主机,我已经尝试过两个与wsdl文件可以在这里找到

http://clemdemo.com/test.wsdl
Run Code Online (Sandbox Code Playgroud)

在PHP中,我使用下面的代码

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

echo "<pre>";

try {

$url     = "https://sampleurl.com/MerchantQueryService.asmx?WSDL ";
$headers = [
    'Host: sampleurl.com',
    'Connection: Keep-Alive',
    'User-Agent: PHP-SOAP/5.3.29',
    'Content-Type: text/xml; charset=utf-8',
    'SOAPAction: "RequestTransaction"',
    'Content-Length: 409'];

$rq = [
"userName" => "username_here",
"passWord" => "password_here",
"referenceId" => "3455566694",
"msisdn" => "346774313"];


try {

$cient = new SoapClient($url,
    [
    'soap_version' => SOAP_1_2,
    'exceptions' => 1,
    'cache_wsdl' => …
Run Code Online (Sandbox Code Playgroud)

php soap wsdl web-services

3
推荐指数
1
解决办法
2万
查看次数

Azure WebApp上的Laravel计划

我正在寻找一种方法将天蓝色调度程序或Web作业链接到Laravel计划.

我的理解是,要设置Azure计划,我需要一个终点来链接到我的Laravel,我不知道如何实现.

laravel azure-web-sites azure-scheduler azure-webjobs laravel-5.1

3
推荐指数
1
解决办法
1404
查看次数