Question

Quelque chose de très étrange. fichier WSDL génère bien. Voici classe simple source

class SoapTest
{
    /**
     * Prapapapapapapap
     * @return string Bls bls
     */
    public function getList()
    {
        return "code";
    }
}

Code pour WSDL, Serveur, Client

if (isset($_REQUEST['wsdl'])) {
                $ad = new Zend_Soap_AutoDiscover();
                $ad->setClass('SoapTest');
                $ad->handle();
            } else if ( isset($_REQUEST['client']) ) {
                $client = new Zend_Soap_Client("http://localhost/test.php");
                echo $client->getList();
            }
            else {
                $server = new Zend_Soap_Server("http://localhost/test.php?wsdl");
                $server->setClass('SoapTest');
                $server->handle();

            }

AutoGénéré WSDL ont des problèmes avec SoapServer

Uncaught exception 'Zend_Soap_Server_Exception' message 'XML non valide' dans Z: \ home \ localhost \ www \ Zend \ soap \ Server.php: 694 Stack trace: # 0 Z: \ home \ localhost \ www \ Zend \ soap \ Server.php (817): Zend_Soap_Server -> _ setRequest ( '') # 1 Z: \ home \ localhost \ www \ test.php (54): Zend_Soap_Server-> poignée () # 2 {main} jeté dans Z: \ home \ localhost \ www \ Zend \ soap \ Server.php sur la ligne 694

Je ne comprends pas pourquoi? Il n'y a pas de symbole supplémentaire dans WSDL comme l'espace ou \ n, tous les en-têtes sont spécifiés.

Php 5.2.12 ZF 1.10.0

Était-ce utile?

La solution

tous les problèmes de eAccelerator

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top