Problem with a test method in Yii web services

Posted by Conrad on Stack Overflow See other posts from Stack Overflow or by Conrad
Published on 2010-02-08T12:54:51Z Indexed on 2010/03/14 4:55 UTC
Read the original article Hit count: 572

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about yii

Related posts about yii-framework