解决方案 »

  1.   

    你编码没设置还有调用.net的时候最好用__call方法调用
    private function _searchother($searchotherxml)
        {
            $soapClient = new SoapClient(Yii::app()->params->tariff['url'],
                    array(   'trace' =>0,
                            'uri'=>'http://api.wingontravel.net',
                            'soap_version' => SOAP_1_2,
                            'cache_wsdl' => WSDL_CACHE_MEMORY,
                            'connection_timeout' => 30));
            $soapClient->soap_defencoding = 'UTF-8';
            $soapClient->decode_utf8 = false;
            //var_dump($soapClient->__getFunctions());exit;
            $username = "faresearch01";
            $password = "aslan1000air";
            $param['username'] = Yii::app()->params->tariff['username'];
            $param['password'] = Yii::app()->params->tariff['password'];
            $param['RequestXML'] = $searchotherxml;
            $result['searchother'] = $soapClient->__Call('SearchOtherSPAs',array($param))->SearchOtherSPAsResult;
            return $result;
        }
      

  2.   

    $response = $client->Register($params);