[Fwd: [PEAR] PEAR::SOAP trouble]

From: Date: Thu, 02 Oct 2003 15:26:25 +0000
Subject: [Fwd: [PEAR] PEAR::SOAP trouble]
Groups: php.soap 
Request: Send a blank email to php-soap+get-1096@lists.php.net to get a copy of this message
Forwarding to soap list 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 -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.soap (#1096) next »