2017-04-12 62 views
0
$params = array (
    "AccountName" => $_POST['comp-name'], 
    "DBA" => $_POST['DBA'], 
    "Comment" => $_POST['comments'] 
); 

$options = array(
     'soap_version'=>SOAP_1_1, 
     'trace'=>1, 
     'exceptions'=>1 
    ); 
    $context = stream_context_create($options); 
try { 
$soap = new 
    SoapClient('https://application.cloud.clickandpledge.com/Signup.svc?wsdl', $options); 
    $soapParams = array('instruction'=>$params);   
    $response = $soap->AccountSignUp($soapParams); 
} 
catch(Exception $e) { 
    die($e->getMessage()); 
} 

var_dump($response); 

我会哄上面的代码片断使用我的WSDL文件与SOAP连接,我在哪里得到以下在我的屏幕上的错误..SOAP的错误:解析WSDL:无法从WSDL“中加载:未能加载外部实体“WSDL”

SOAP的错误:解析WSDL:无法从“http://application.cloud.clickandpledge.com/Signup.svc?wsdl=wsdl0”中加载:未能加载外部实体“http://application.cloud.clickandpledge.com/Signup.svc?wsdl=wsdl0

回答

0

你似乎不正确的WSDL URL。我发现的一个是:

https://paas.cloud.clickandpledge.com/PaymentService.svc?wsdl

为了您的SOAP调用,然后你会叫“PaymentService”服务。它看起来不像clickandpledge.com允许通过SOAP注册。你可能必须通过他们的网页来做到这一点。

HTH, Jim

相关问题