这里有没有人可能熟悉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: Couldn't load from '[http://sms.chillnethosting.co.za/index.php?r=sms/webservice](http://sms.chillnethosting.co.za/index.php?r=sms/webservice)' : Start tag expected, '<' not found
当我调用URL:Web服务URL时,WSDL生成
有什么想法吗?
发布于 2010-03-14 04:53:17
您声明了您的web服务操作了吗?
http://www.yiiframework.com/doc/guide/topics.webservice#declaring-web-service-action
发布于 2010-03-28 07:58:18
我设法找出了问题所在。似乎WSDL是在我的浏览器中缓存的。我收到的错误是由于我之前做的一个错误,但是浏览器缓存了它。
谢谢你的回复。
发布于 2011-02-05 16:48:33
Yii网络服务的另一个例子-
http://rowsandcolumns.blogspot.com/2011/02/yii-web-service-and-php-soap-client.html
https://stackoverflow.com/questions/2221639
复制相似问题