CWebServiceAction problems

Hi All.

I’ve been trying to implement SOAP services with my app. I have my controller set up as follows:


	

        public function actions() {


		return array(

			'wsdl'=> array(

				'class'   => 'CWebServiceAction',

			),

		);

	}




	/**

	 * Returns all domains by params.

	 *

	 * @param string domain

	 * @param int    ggl param

	 * @param int    miralinks param

	 * @param int    Tic param from

	 * @param int    Tic param to

	 * @param int    Yaca param

	 * @param int    Pr param from

	 * @param int    Pr param to

	 * @param int    Whois param from

	 * @param int    Whois param to

	 * @param int    limit

	 *

	 * @return array domain with params array

	 * @soap

	 */

	public function getDomainByParams($domain = '', $ggl = null, $miralinks = null, $tic_from = false, $tic_to = false, $yaca = null, $pr_from = false, $pr_to = false, $whois_start = false, $whois_to = false, $limit = 10) {


		return (array($domain, $ggl, $miralinks, $tic_from, $tic_to, $yaca, $pr_from, $pr_to, $whois_start, $whois_to, $limit));


	}



In a different controller I have the following function:




	public function actionTesting() {


		$client = new SoapClient('hostname/api/DomainApi/wsdl', array('trace' => 1));


		print_r($client->getDomainByParams('1', 2, 3, 4, 5, 6, 7, 8, 9, 10, 11));

		print_r($client->__getLastRequest());

		print_r($client->__getLastResponse());

	}



This is what I get as an answer:




Array ( [0] => 1 [1] => [2] => [3] => 2 [4] => 3 [5] => 4 [6] => 5 [7] => 6 [8] => 7 [9] => 8 [10] => 9 ) 1234567891011 123456789



Can somebody explain what I am doing wrong? Two parameters have been lost after transmission.

Problem solved. It seems that the WSDL was cached in my browser. :rolleyes: