Problem with a test method in Yii web services
- by Conrad
Hi There,
Is there anyone here who might be familiar with web services in the yii framework?
I declared the following test method:
/**
* 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";
}
But when I try to call this method I get the following response:
-
-
WSDL
-
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://sms.chillnethosting.co.za/index.php?r=sms/webservice' : Start tag expected, '<' not found
The WSDL generates when I call my URL: Web Service URL
Any Ideas?