Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
Bonjour,
Je rencontre un soucis pour monter un client Soap avec le framework (1.7).
J'ai monté un webservice avec nusoap (php4 oblige) que j'interroge depuis mon appli avec SoapClient et ca fonctionne.
Voici pour info le code qui fonctionne :
try { $client = new SoapClient ( "http://www....zig/vm/webservice.php?wsdl" ); $parametres = array ( 'email' => "cybercandyman@zend.fr" ); $emailExist = $client->__soapCall ( 'checkEmail', $parametres ); return $emailExist; } catch ( SoapFault $fault ) { Zend_Registry::get ( 'logger' )->log ( "SOAP_ERROR :" . $fault->getMessage (), Zend_Log::ALERT ); return false; }
Vu que je veux Zendifié mon appli jusqu'au bout :D, je souhaite utilisé en lieu et place le Zend_Soap_Client, voici le code :
try { require_once 'Zend/Soap/Client.php'; $clientSoap = new Zend_Soap_Client ( "http://www.bluestream.zig/vm/webservice.php?wsdl" ,array()); $parametres = array ( 'email' => "cybercandyman@zend.fr" ); //Appel de la méthode : $clientSoap->checkEmail("cybercandyman@zend.fr" ); //Ou $clientSoap->__call ( 'checkEmail', $parametres ); } catch ( SoapFault $fault ) { Zend_Registry::get ( 'logger' )->log ( "SOAP_ERROR :" . $fault->getMessage (), Zend_Log::ALERT ); return false; }
Seulement j'ai une exception qui est levé : "method '' not defined in service" avec l'une ou l'autre des méthodes... Qu'est que j'ai oublié de faire dans ce code ???
merci pour votre aide
Hors ligne
bonjour,
dans un premier temps vide ton /tmp les wsdl sont mis en cache dans la /tmp (meme repertoire que les fichiers de sessions)
Hors ligne
oui je l'ai fait, et j'ai rajouté
ini_set("soap.wsdl_cache_enabled", "0");
dans mon code, mais rien de mieux :x
Hors ligne
l'url du webservice te revenvoie bien un wsdl ??
essaie :
$soapclient->__getFunctions(); //edit oops c'est pas bon
// edit :
$soapclient->getFunctions(); // c'est mieux
après avoir instancié ton client pour récupérer les methodes du webservice.
Dernière modification par ichevc02 (11-12-2008 12:37:35)
Hors ligne
oui, ca me renvoie bien le wsdl, en plus ca marche avec SoapClient de php5.
avec ce code :
public function testwsAction() { $this->_helper->viewRenderer->setNoRender ( true ); try { require_once 'Zend/Soap/Client.php'; $clientSoap = new Zend_Soap_Client ( "http://www.bluestream.zig/vm/webservice.php?wsdl", array () ); Zend_Debug::dump ( $clientSoap->getLastResponse () ); Zend_Debug::dump ( $clientSoap->getFunctions () ); Zend_Debug::dump ( $clientSoap->getLastResponse () ); $parametres = array ( 'email' => "cybercandyman@zend.fr" ); //$clientSoap->checkEmail("cybercandyman@zend.fr"); //$clientSoap->__call ( 'checkEmail', $parametres ); } catch ( SoapFault $fault ) { Zend_Debug::dump ( $fault ); Zend_Registry::get ( 'logger' )->log ( "SOAP_ERROR :" . $fault->getMessage (), Zend_Log::ALERT ); return false; } }
et la sortie
string(0) "" array(3) { [0] => string(33) "boolean checkEmail(string $email)" [1] => string(68) "string checkMD5PasswordWithEmail(string $md5password, string $email)" [2] => string(35) "string checkUserRights(string $key)" } NULL
Je vois pas ce qui peut clocher, peut être dans la construction du client ?
Hors ligne
re,
si ca marche avec spoaclient ca devrait marcher avec Zend_soap_client :
car la classe zend ne fait qu'encapsuler un soapclient et n'appaorte pas de fonctionnalité supplementaire (pour l'instant).
public function testwsAction() { $this->_helper->viewRenderer->setNoRender ( true ); try { require_once 'Zend/Soap/Client.php'; $clientSoap = new Zend_Soap_Client ( "http://www.bluestream.zig/vm/webservice.php?wsdl", array () ); Zend_Debug::dump ( $clientSoap->getFunctions () ); $parametres = array ( 'email' => "cybercandyman@zend.fr" ); $clientSoap->checkEmail("cybercandyman@zend.fr"); Zend_Debug::dump ( $clientSoap->getLastResponse () ); Zend_Debug::dump ( $clientSoap->getLastRequest() ); } catch ( SoapFault $fault ) { Zend_Debug::dump ( $fault ); Zend_Registry::get ( 'logger' )->log ( "SOAP_ERROR :" . $fault->getMessage (), Zend_Log::ALERT ); return false; } }
avec ce code tu obtiens quoi ?
(je cherche a voir la requete et la reponse) .. parceque j'ai pas plus d'idée que toi :-(
Hors ligne
merci de bien vouloir m'aider en tout cas
je constate avec la sortie que en fait il poste sur : /vm/webservice.php
et pas : /vm/webservice.php?wsdl qui est l'adresse exacte de mon wsdl (sinon on tombe sur la page de présentation nusoap)
alors attention il y'a du monde dans l'output :
array(3) { [0] => string(33) "boolean checkEmail(string $email)" [1] => string(68) "string checkMD5PasswordWithEmail(string $md5password, string $email)" [2] => string(35) "string checkUserRights(string $key)" } object(SoapFault)#44 (10) { ["message:protected"] => string(32) "method '' not defined in service" ["string:private"] => string(0) "" ["code:protected"] => int(0) ["file:protected"] => string(49) "F:\www\valetmeetings\library\Zend\Soap\Client.php" ["line:protected"] => int(882) ["trace:private"] => array(9) { [0] => array(4) { ["function"] => string(6) "__call" ["class"] => string(10) "SoapClient" ["type"] => string(2) "->" ["args"] => array(2) { [0] => string(10) "checkEmail" [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [1] => array(4) { ["function"] => string(10) "checkEmail" ["class"] => string(23) "Zend_Soap_Client_Common" ["type"] => string(2) "->" ["args"] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } [2] => array(4) { ["file"] => string(49) "F:\www\valetmeetings\library\Zend\Soap\Client.php" ["line"] => int(882) ["function"] => string(20) "call_user_func_array" ["args"] => array(2) { [0] => array(2) { [0] => &object(Zend_Soap_Client_Common)#43 (11) { ["_doRequestCallback:protected"] => array(2) { [0] => &object(Zend_Soap_Client)#41 (21) { ["_encoding:protected"] => string(5) "UTF-8" ["_classmap:protected"] => NULL ["_faultExceptions:protected"] => array(0) { } ["_soapVersion:protected"] => int(2) ["_uri:protected"] => NULL ["_location:protected"] => NULL ["_style:protected"] => NULL ["_use:protected"] => NULL ["_login:protected"] => NULL ["_password:protected"] => NULL ["_proxy_host:protected"] => NULL ["_proxy_port:protected"] => NULL ["_proxy_login:protected"] => NULL ["_proxy_password:protected"] => NULL ["_local_cert:protected"] => NULL ["_passphrase:protected"] => NULL ["_compression:protected"] => NULL ["_connection_timeout:protected"] => NULL ["_wsdl:protected"] => string(48) "http://www.bluestream.zig/vm/webservice.php?wsdl" ["_soapClient:protected"] => object(Zend_Soap_Client_Common)#43 (11) { ["_doRequestCallback:protected"] => array(2) { [0] => &object(Zend_Soap_Client)#41 (21) { ["_encoding:protected"] => string(5) "UTF-8" ["_classmap:protected"] => NULL ["_faultExceptions:protected"] => array(0) { } ["_soapVersion:protected"] => int(2) ["_uri:protected"] => NULL ["_location:protected"] => NULL ["_style:protected"] => NULL ["_use:protected"] => NULL ["_login:protected"] => NULL ["_password:protected"] => NULL ["_proxy_host:protected"] => NULL ["_proxy_port:protected"] => NULL ["_proxy_login:protected"] => NULL ["_proxy_password:protected"] => NULL ["_local_cert:protected"] => NULL ["_passphrase:protected"] => NULL ["_compression:protected"] => NULL ["_connection_timeout:protected"] => NULL ["_wsdl:protected"] => string(48) "http://www.bluestream.zig/vm/webservice.php?wsdl" ["_soapClient:protected"] => *RECURSION* ["_lastMethod:protected"] => string(10) "checkEmail" } [1] => string(10) "_doRequest" } ["trace"] => int(1) ["_encoding"] => string(5) "UTF-8" ["_soap_version"] => int(2) ["sdl"] => resource(184) of type (Unknown) ["__last_request"] => string(475) "<?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="urn:checkEmailwsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"><env:Body><ns1:checkEmail env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"><email xsi:type="xsd:string">cybercandyman@zend.fr</email></ns1:checkEmail></env:Body></env:Envelope> " ["httpurl"] => resource(186) of type (Unknown) ["__last_request_headers"] => string(224) "POST /vm/webservice.php HTTP/1.1 Host: www.bluestream.zig Connection: Keep-Alive User-Agent: PHP SOAP 0.1 Content-Type: application/soap+xml; charset=utf-8; action="urn:checkEmailwsdl#checkEmail" Content-Length: 475 " ["__last_response_headers"] => string(400) "HTTP/1.1 500 Internal Server Error Date: Thu, 11 Dec 2008 13:27:39 GMT Server: Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_fastcgi/2.4.2 PHP/4.4.4-8+etch6 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 X-Powered-By: PHP/4.4.4-8+etch6 Status: 500 Internal Server Error X-SOAP-Server: NuSOAP/0.7.2 (1.94) Content-Length: 667 Connection: close Content-Type: text/xml; charset=ISO-8859-1 " ["__last_response"] => string(667) "<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xsi:type="xsd:string">Client</faultcode><faultactor xsi:type="xsd:string"></faultactor><faultstring xsi:type="xsd:string">method '' not defined in service</faultstring><detail xsi:type="xsd:string"></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>" ["__soap_fault"] => object(SoapFault)#44 (10) { ["message:protected"] => string(32) "method '' not defined in service" ["string:private"] => string(0) "" ["code:protected"] => int(0) ["file:protected"] => string(49) "F:\www\valetmeetings\library\Zend\Soap\Client.php" ["line:protected"] => int(882) ["trace:private"] => array(9) { [0] => array(4) { ["function"] => string(6) "__call" ["class"] => string(10) "SoapClient" ["type"] => string(2) "->" ["args"] => array(2) { [0] => string(10) "checkEmail" [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [1] => array(4) { ["function"] => string(10) "checkEmail" ["class"] => string(23) "Zend_Soap_Client_Common" ["type"] => string(2) "->" ["args"] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } [2] => array(4) { ["file"] => string(49) "F:\www\valetmeetings\library\Zend\Soap\Client.php" ["line"] => int(882) ["function"] => string(20) "call_user_func_array" ["args"] => array(2) { [0] => array(2) { [0] => *RECURSION* [1] => string(10) "checkEmail" } [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [3] => array(4) { ["function"] => string(6) "__call" ["class"] => string(16) "Zend_Soap_Client" ["type"] => string(2) "->" ["args"] => array(2) { [0] => string(10) "checkEmail" [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [4] => array(6) { ["file"] => string(71) "F:\www\valetmeetings\app\modules\default\controllers\UserController.php" ["line"] => int(578) ["function"] => string(10) "checkEmail" ["class"] => string(16) "Zend_Soap_Client" ["type"] => string(2) "->" ["args"] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } [5] => array(6) { ["file"] => string(55) "F:\www\valetmeetings\library\Zend\Controller\Action.php" ["line"] => int(494) ["function"] => string(12) "testwsAction" ["class"] => string(14) "UserController" ["type"] => string(2) "->" ["args"] => array(0) { } } [6] => array(6) { ["file"] => string(68) "F:\www\valetmeetings\library\Zend\Controller\Dispatcher\Standard.php" ["line"] => int(285) ["function"] => string(8) "dispatch" ["class"] => string(22) "Zend_Controller_Action" ["type"] => string(2) "->" ["args"] => array(1) { [0] => &string(12) "testwsAction" } } [7] => array(6) { ["file"] => string(54) "F:\www\valetmeetings\library\Zend\Controller\Front.php" ["line"] => int(934) ["function"] => string(8) "dispatch" ["class"] => string(35) "Zend_Controller_Dispatcher_Standard" ["type"] => string(2) "->" ["args"] => array(2) { [0] => &object(Zend_Controller_Request_Http)#34 (14) { ["_paramSources:protected"] => array(2) { [0] => string(4) "_GET" [1] => string(5) "_POST" } ["_requestUri:protected"] => string(20) "/default/user/testws" ["_baseUrl:protected"] => string(0) "" ["_basePath:protected"] => NULL ["_pathInfo:protected"] => string(20) "/default/user/testws" ["_params:protected"] => array(3) { ["module"] => string(7) "default" ["controller"] => string(4) "user" ["action"] => string(6) "testws" } ["_aliases:protected"] => array(0) { } ["_dispatched:protected"] => bool(true) ["_module:protected"] => string(7) "default" ["_moduleKey:protected"] => string(6) "module" ["_controller:protected"] => string(4) "user" ["_controllerKey:protected"] => string(10) "controller" ["_action:protected"] => string(6) "testws" ["_actionKey:protected"] => string(6) "action" } [1] => &object(Zend_Controller_Response_Http)#35 (8) { ["_body:protected"] => array(0) { } ["_exceptions:protected"] => array(0) { } ["_headers:protected"] => array(0) { } ["_headersRaw:protected"] => array(0) { } ["_httpResponseCode:protected"] => int(200) ["_isRedirect:protected"] => bool(false) ["_renderExceptions:protected"] => bool(false) ["headersSentThrowsException"] => bool(true) } } } [8] => array(6) { ["file"] => string(30) "F:\www\valetmeetings\index.php" ["line"] => int(89) ["function"] => string(8) "dispatch" ["class"] => string(21) "Zend_Controller_Front" ["type"] => string(2) "->" ["args"] => array(0) { } } } ["faultstring"] => string(32) "method '' not defined in service" ["faultcode"] => string(6) "Sender" ["faultcodens"] => string(39) "http://www.w3.org/2003/05/soap-envelope" ["detail"] => string(0) "" } } ["_lastMethod:protected"] => string(10) "checkEmail" } [1] => string(10) "_doRequest" } ["trace"] => int(1) ["_encoding"] => string(5) "UTF-8" ["_soap_version"] => int(2) ["sdl"] => resource(184) of type (Unknown) ["__last_request"] => string(475) "<?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="urn:checkEmailwsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"><env:Body><ns1:checkEmail env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"><email xsi:type="xsd:string">cybercandyman@zend.fr</email></ns1:checkEmail></env:Body></env:Envelope> " ["httpurl"] => resource(186) of type (Unknown) ["__last_request_headers"] => string(224) "POST /vm/webservice.php HTTP/1.1 Host: www.bluestream.zig Connection: Keep-Alive User-Agent: PHP SOAP 0.1 Content-Type: application/soap+xml; charset=utf-8; action="urn:checkEmailwsdl#checkEmail" Content-Length: 475 " ["__last_response_headers"] => string(400) "HTTP/1.1 500 Internal Server Error Date: Thu, 11 Dec 2008 13:27:39 GMT Server: Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_fastcgi/2.4.2 PHP/4.4.4-8+etch6 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 X-Powered-By: PHP/4.4.4-8+etch6 Status: 500 Internal Server Error X-SOAP-Server: NuSOAP/0.7.2 (1.94) Content-Length: 667 Connection: close Content-Type: text/xml; charset=ISO-8859-1 " ["__last_response"] => string(667) "<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xsi:type="xsd:string">Client</faultcode><faultactor xsi:type="xsd:string"></faultactor><faultstring xsi:type="xsd:string">method '' not defined in service</faultstring><detail xsi:type="xsd:string"></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>" ["__soap_fault"] => object(SoapFault)#44 (10) { ["message:protected"] => string(32) "method '' not defined in service" ["string:private"] => string(0) "" ["code:protected"] => int(0) ["file:protected"] => string(49) "F:\www\valetmeetings\library\Zend\Soap\Client.php" ["line:protected"] => int(882) ["trace:private"] => array(9) { [0] => array(4) { ["function"] => string(6) "__call" ["class"] => string(10) "SoapClient" ["type"] => string(2) "->" ["args"] => array(2) { [0] => string(10) "checkEmail" [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [1] => array(4) { ["function"] => string(10) "checkEmail" ["class"] => string(23) "Zend_Soap_Client_Common" ["type"] => string(2) "->" ["args"] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } [2] => array(4) { ["file"] => string(49) "F:\www\valetmeetings\library\Zend\Soap\Client.php" ["line"] => int(882) ["function"] => string(20) "call_user_func_array" ["args"] => array(2) { [0] => array(2) { [0] => &object(Zend_Soap_Client_Common)#43 (11) { ["_doRequestCallback:protected"] => array(2) { [0] => &object(Zend_Soap_Client)#41 (21) { ["_encoding:protected"] => string(5) "UTF-8" ["_classmap:protected"] => NULL ["_faultExceptions:protected"] => array(0) { } ["_soapVersion:protected"] => int(2) ["_uri:protected"] => NULL ["_location:protected"] => NULL ["_style:protected"] => NULL ["_use:protected"] => NULL ["_login:protected"] => NULL ["_password:protected"] => NULL ["_proxy_host:protected"] => NULL ["_proxy_port:protected"] => NULL ["_proxy_login:protected"] => NULL ["_proxy_password:protected"] => NULL ["_local_cert:protected"] => NULL ["_passphrase:protected"] => NULL ["_compression:protected"] => NULL ["_connection_timeout:protected"] => NULL ["_wsdl:protected"] => string(48) "http://www.bluestream.zig/vm/webservice.php?wsdl" ["_soapClient:protected"] => *RECURSION* ["_lastMethod:protected"] => string(10) "checkEmail" } [1] => string(10) "_doRequest" } ["trace"] => int(1) ["_encoding"] => string(5) "UTF-8" ["_soap_version"] => int(2) ["sdl"] => resource(184) of type (Unknown) ["__last_request"] => string(475) "<?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="urn:checkEmailwsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"><env:Body><ns1:checkEmail env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"><email xsi:type="xsd:string">cybercandyman@zend.fr</email></ns1:checkEmail></env:Body></env:Envelope> " ["httpurl"] => resource(186) of type (Unknown) ["__last_request_headers"] => string(224) "POST /vm/webservice.php HTTP/1.1 Host: www.bluestream.zig Connection: Keep-Alive User-Agent: PHP SOAP 0.1 Content-Type: application/soap+xml; charset=utf-8; action="urn:checkEmailwsdl#checkEmail" Content-Length: 475 " ["__last_response_headers"] => string(400) "HTTP/1.1 500 Internal Server Error Date: Thu, 11 Dec 2008 13:27:39 GMT Server: Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_fastcgi/2.4.2 PHP/4.4.4-8+etch6 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 X-Powered-By: PHP/4.4.4-8+etch6 Status: 500 Internal Server Error X-SOAP-Server: NuSOAP/0.7.2 (1.94) Content-Length: 667 Connection: close Content-Type: text/xml; charset=ISO-8859-1 " ["__last_response"] => string(667) "<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xsi:type="xsd:string">Client</faultcode><faultactor xsi:type="xsd:string"></faultactor><faultstring xsi:type="xsd:string">method '' not defined in service</faultstring><detail xsi:type="xsd:string"></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>" ["__soap_fault"] => *RECURSION* } [1] => string(10) "checkEmail" } [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [3] => array(4) { ["function"] => string(6) "__call" ["class"] => string(16) "Zend_Soap_Client" ["type"] => string(2) "->" ["args"] => array(2) { [0] => string(10) "checkEmail" [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [4] => array(6) { ["file"] => string(71) "F:\www\valetmeetings\app\modules\default\controllers\UserController.php" ["line"] => int(578) ["function"] => string(10) "checkEmail" ["class"] => string(16) "Zend_Soap_Client" ["type"] => string(2) "->" ["args"] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } [5] => array(6) { ["file"] => string(55) "F:\www\valetmeetings\library\Zend\Controller\Action.php" ["line"] => int(494) ["function"] => string(12) "testwsAction" ["class"] => string(14) "UserController" ["type"] => string(2) "->" ["args"] => array(0) { } } [6] => array(6) { ["file"] => string(68) "F:\www\valetmeetings\library\Zend\Controller\Dispatcher\Standard.php" ["line"] => int(285) ["function"] => string(8) "dispatch" ["class"] => string(22) "Zend_Controller_Action" ["type"] => string(2) "->" ["args"] => array(1) { [0] => &string(12) "testwsAction" } } [7] => array(6) { ["file"] => string(54) "F:\www\valetmeetings\library\Zend\Controller\Front.php" ["line"] => int(934) ["function"] => string(8) "dispatch" ["class"] => string(35) "Zend_Controller_Dispatcher_Standard" ["type"] => string(2) "->" ["args"] => array(2) { [0] => &object(Zend_Controller_Request_Http)#34 (14) { ["_paramSources:protected"] => array(2) { [0] => string(4) "_GET" [1] => string(5) "_POST" } ["_requestUri:protected"] => string(20) "/default/user/testws" ["_baseUrl:protected"] => string(0) "" ["_basePath:protected"] => NULL ["_pathInfo:protected"] => string(20) "/default/user/testws" ["_params:protected"] => array(3) { ["module"] => string(7) "default" ["controller"] => string(4) "user" ["action"] => string(6) "testws" } ["_aliases:protected"] => array(0) { } ["_dispatched:protected"] => bool(true) ["_module:protected"] => string(7) "default" ["_moduleKey:protected"] => string(6) "module" ["_controller:protected"] => string(4) "user" ["_controllerKey:protected"] => string(10) "controller" ["_action:protected"] => string(6) "testws" ["_actionKey:protected"] => string(6) "action" } [1] => &object(Zend_Controller_Response_Http)#35 (8) { ["_body:protected"] => array(0) { } ["_exceptions:protected"] => array(0) { } ["_headers:protected"] => array(0) { } ["_headersRaw:protected"] => array(0) { } ["_httpResponseCode:protected"] => int(200) ["_isRedirect:protected"] => bool(false) ["_renderExceptions:protected"] => bool(false) ["headersSentThrowsException"] => bool(true) } } } [8] => array(6) { ["file"] => string(30) "F:\www\valetmeetings\index.php" ["line"] => int(89) ["function"] => string(8) "dispatch" ["class"] => string(21) "Zend_Controller_Front" ["type"] => string(2) "->" ["args"] => array(0) { } } } ["faultstring"] => string(32) "method '' not defined in service" ["faultcode"] => string(6) "Sender" ["faultcodens"] => string(39) "http://www.w3.org/2003/05/soap-envelope" ["detail"] => string(0) "" } } [1] => string(10) "checkEmail" } [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [3] => array(4) { ["function"] => string(6) "__call" ["class"] => string(16) "Zend_Soap_Client" ["type"] => string(2) "->" ["args"] => array(2) { [0] => string(10) "checkEmail" [1] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } } [4] => array(6) { ["file"] => string(71) "F:\www\valetmeetings\app\modules\default\controllers\UserController.php" ["line"] => int(578) ["function"] => string(10) "checkEmail" ["class"] => string(16) "Zend_Soap_Client" ["type"] => string(2) "->" ["args"] => array(1) { [0] => string(21) "cybercandyman@zend.fr" } } [5] => array(6) { ["file"] => string(55) "F:\www\valetmeetings\library\Zend\Controller\Action.php" ["line"] => int(494) ["function"] => string(12) "testwsAction" ["class"] => string(14) "UserController" ["type"] => string(2) "->" ["args"] => array(0) { } } [6] => array(6) { ["file"] => string(68) "F:\www\valetmeetings\library\Zend\Controller\Dispatcher\Standard.php" ["line"] => int(285) ["function"] => string(8) "dispatch" ["class"] => string(22) "Zend_Controller_Action" ["type"] => string(2) "->" ["args"] => array(1) { [0] => &string(12) "testwsAction" } } [7] => array(6) { ["file"] => string(54) "F:\www\valetmeetings\library\Zend\Controller\Front.php" ["line"] => int(934) ["function"] => string(8) "dispatch" ["class"] => string(35) "Zend_Controller_Dispatcher_Standard" ["type"] => string(2) "->" ["args"] => array(2) { [0] => &object(Zend_Controller_Request_Http)#34 (14) { ["_paramSources:protected"] => array(2) { [0] => string(4) "_GET" [1] => string(5) "_POST" } ["_requestUri:protected"] => string(20) "/default/user/testws" ["_baseUrl:protected"] => string(0) "" ["_basePath:protected"] => NULL ["_pathInfo:protected"] => string(20) "/default/user/testws" ["_params:protected"] => array(3) { ["module"] => string(7) "default" ["controller"] => string(4) "user" ["action"] => string(6) "testws" } ["_aliases:protected"] => array(0) { } ["_dispatched:protected"] => bool(true) ["_module:protected"] => string(7) "default" ["_moduleKey:protected"] => string(6) "module" ["_controller:protected"] => string(4) "user" ["_controllerKey:protected"] => string(10) "controller" ["_action:protected"] => string(6) "testws" ["_actionKey:protected"] => string(6) "action" } [1] => &object(Zend_Controller_Response_Http)#35 (8) { ["_body:protected"] => array(0) { } ["_exceptions:protected"] => array(0) { } ["_headers:protected"] => array(0) { } ["_headersRaw:protected"] => array(0) { } ["_httpResponseCode:protected"] => int(200) ["_isRedirect:protected"] => bool(false) ["_renderExceptions:protected"] => bool(false) ["headersSentThrowsException"] => bool(true) } } } [8] => array(6) { ["file"] => string(30) "F:\www\valetmeetings\index.php" ["line"] => int(89) ["function"] => string(8) "dispatch" ["class"] => string(21) "Zend_Controller_Front" ["type"] => string(2) "->" ["args"] => array(0) { } } } ["faultstring"] => string(32) "method '' not defined in service" ["faultcode"] => string(6) "Sender" ["faultcodens"] => string(39) "http://www.w3.org/2003/05/soap-envelope" ["detail"] => string(0) "" }
Hors ligne
Désoler,
je vois pas trop.
pour l'histoire du parametre wsdl , tu peux enregistrer ton wsdl sur ton serveur de dev et lui mettre le chemin du fichier a la place de l'url pour voir ce que ca donne.
perso j'utilise le scripte wsdl2php pour générer mes clients soap (le script génère une classe client php qui étend Soapclient).
voila, désolé de ne pas pouvoir faire mieux
Hors ligne
Pareil en lui passant un chemin vers le wsdl en local (edit : sur le serveur de l'appli) ... :'{
là je ne vois pas non plus, un peu déçu sur ce coup là :x
je vais voir du côté de wsdl2php histoire d'avoir un truc propre, merci pour ton aide en tout cas !!!
Dernière modification par cybercandyman (11-12-2008 16:28:12)
Hors ligne