PEAR::SOAP trouble

From: Date: Thu, 02 Oct 2003 12:25:13 +0000
Subject: PEAR::SOAP trouble
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8228@lists.php.net to get a copy of this message
Hi to all, I must connect to this web service: http://wssearch.paginegialle.virgilio.it/PagineGialleSearchService.asmx?wsdl I use PEAR::SOAP but I do not understand what to do to call a function... $client = new SOAP_WSDL("http://wssearch.paginegialle.virgilio.it/PagineGialleSearchService.asmx?wsdl"); $proxy = $client->getProxy(); this is the output of the generateProxyCode: ---------------------------------------------- class WebService_PagineGialleSearchService_PagineGialleSearchServiceSoap extends SOAP_Client { function WebService_PagineGialleSearchService_PagineGialleSearchServiceSoap() { $this->SOAP_Client("http://wssearch.paginegialle.virgilio.it/PagineGialleSearchService.asmx", 0); } function &searchPGOL($key, $consiglio_id, $consiglio_desc, $tiporicerca, $cod_categoria, $input_cosachi, $input_dove, $dove, $inizio, $delta) { return $this->call("searchPGOL", $v = array("key"=>$key, "consiglio_id"=>$consiglio_id, "consiglio_desc"=>$consiglio_desc, "tiporicerca"=>$tiporicerca, "cod_categoria"=>$cod_categoria, "input_cosachi"=>$input_cosachi, "input_dove"=>$input_dove, "dove"=>$dove, "inizio"=>$inizio, "delta"=>$delta), array('namespace'=>'http://wssearch.paginegialle.virgilio.it/', 'soapaction'=>'http://wssearch.paginegialle.virgilio.it/searchPGOL', 'style'=>'rpc', 'use'=>'encoded' )); } function &testCosa($input, $dove) { $testCosa =& new SOAP_Value('{http://wssearch.paginegialle.virgilio.it/}testCosa',false,$v=array("input"=>$input, "dove"=>$dove)); return $this->call("testCosa", $v = array('testCosa'=>$testCosa), array('namespace'=>'http://wssearch.paginegialle.virgilio.it/', 'soapaction'=>'http://wssearch.paginegialle.virgilio.it/testCosa', 'style'=>'document', 'use'=>'literal' )); } function &testChi($input, $dove) { $testChi =& new SOAP_Value('{http://wssearch.paginegialle.virgilio.it/}testChi',false,$v=array("input"=>$input, "dove"=>$dove)); return $this->call("testChi", $v = array('testChi'=>$testChi), array('namespace'=>'http://wssearch.paginegialle.virgilio.it/', 'soapaction'=>'http://wssearch.paginegialle.virgilio.it/testChi', 'style'=>'document', 'use'=>'literal' )); } } ---------------------------------------------- I have errors calling the first function, because of object types mismatching. How can I have the right data types? Thanks in advance. -- Fabrizio Balliano ________ CREALABS Viale dei Mughetti, 13/A - 10151 Torino - Italy Tel. +39-011-735645 - Fax +39-011-735645 http://www.crealabs.it - mailto:fabrizio.balliano@crealabs.it

« previous php.pear.general (#8228) next »