这里有没有人可能熟悉 yii 框架中的 Web 服务?
我声明了以下测试方法:
/**
* Send a single SMS message
*
* @param string $username Username
* @param string $password Password
* @param string $identifier Valid Identifier to use
* @param string $mobileNumber Mobile Number to send message to
* @param string $message Message to send
* @return string 'OK' on success, error message on failure
* @soap
*/
public function singleSms($username, $password, $identifier,$mobileNumber, $message){
return "username=$username, pwd=$password, source=$identifier, mobno=$mobileNumber, msg=$message";
}
但是当我尝试调用此方法时,我得到以下响应:
− − WSDL − SOAP-ERROR: Parsing WSDL: could't load from ' http://sms.chillnethosting.co.za/index.php?r=sms/webservice ' : 需要开始标签,'<' 未找到
WSDL 在我调用我的 URL 时生成:Web Service URL
有任何想法吗?