Welcome Guest, Not a member yet? Register   Sign In
SOAP problem
#1

[eluser]Hamed[/eluser]
I have error when I use SOAPClient
( ! ) Fatal error: SOAP-ERROR: Encoding: object has no 'msg' property in C:\wamp\www\application\models\content.php on line 174
Call Stack
# Time Memory Function Location
1 0.0011 389952 {main}( ) ..\index.php:0
2 0.0041 466064 require_once( 'C:\wamp\www\system\core\CodeIgniter.php' ) ..\index.php:202
3 0.0689 3624184 call_user_func_array ( ) ..\CodeIgniter.php:359
4 0.0689 3624232 Aqa->ansd( ) ..\CodeIgniter.php:359
5 0.0928 6616496 Content:ConfusedendSMS( ) ..\aqa.php:85
6 0.0932 6631952 SoapClient->__call( )
in controller:
Code:
$this->content->sendSMS("m","m",$row);
in model"
Code:
public static function sendSMS($username,$password, $data)
    {
        $wsdl ='http://takpayamak.ir/webservice/v2.02.php?wsdl';
     $authentication = array ('username' => $username, 'password' => $password);
     $client = new SoapClient($wsdl);
        $client->__call('WSdoSendSMS1',array ('authentication' => $authentication, 'message' => $data));
    }




Theme © iAndrew 2016 - Forum software by © MyBB