首页新闻找找看学习计划

eclipsePHP studio 3中 调用 webService 报错 Uncaught SoapFault exception;

0
悬赏园豆:10 [待解决问题]

有大佬们知道这个咋解决不?

报错提示:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:60532/WebServiceApp/PHPTestApp.asmx?HelloWorld' : Premature end of data in tag html line 3 in C:\Users\ICC1\workspace\wwww\newfile.php:10 Stack trace: #0 C:\Users\ICC1\workspace\wwww\newfile.php(10): SoapClient->SoapClient('http://localhos...') #1 {main} thrown in C:\Users\ICC1\workspace\wwww\newfile.php on line 10

PHP文件代码如下:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
echo "Hello World !<br>";
$Str='http://localhost:60532/WebServiceApp/PHPTestApp.asmx?HelloWorld';
echo "$Str<br>";

$wsdl = new SoapClient ('http://localhost:60532/WebServiceApp/PHPTestApp.asmx?HelloWorld');
echo "$Str<br>";
?>

PHP配置及版本:

过河小斌的主页 过河小斌 | 初学一级 | 园豆:111
提问于:2019-04-08 14:25
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册