致命错误:SOAP-ERROR:解析WSDL:无法加载WSDL URL

时间:2017-01-20 09:46:49

标签: php web-services soap wsdl

我正在使用SOAP API Web服务,

通过使用这个我得到以下错误:

Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 
'https://paas.cloud.clickandpledge.com/paymentservice.svc?wsdl' :
Start tag expected, '<' not found in /home/nati9630/public_html/testsoap.php 
on line 4

PHP代码:

 $connect = array('soap_version' => SOAP_1_1, 'trace' => 1,
                  'exceptions' => 0, 
                  'verify_peer' => false,
                  'verify_peer_name'  => false);
        $client = new SoapClient('https://paas.cloud.clickandpledge.com/
                paymentservice.svc?wsdl', $connect);
        $soapParams = array('');         
        $response = $client->Operation($soapParams);

        print_r($response);

0 个答案:

没有答案