我试图简单地返回字符串并在页面上打印它。
这里是PHP代码
$client = new SoapClient("path/track_on.asmx?WSDL");
$result = $client -> demoa("working!") -> demoaResult;
print_r($result);
肥皂服务
[WebMethod]
public string demoa(string emaildemo)
{
string a = emaildemo;
return a;
}
错误 :
Notice: Undefined property: stdClass::$demoaResult in C:\xampp\htdocs\track_on\index.php on line 4($result = $client -> demoa("working!") -> demoaResult;)
有什么建议么 ?