#37783 [Opn->Asn]: SOAP call response is not parsed

From: Date: Mon, 19 Jun 2006 17:01:26 +0000
Subject: #37783 [Opn->Asn]: SOAP call response is not parsed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98508@lists.php.net to get a copy of this message
ID: 37783 Updated by: tony2001@php.net Reported By: michal dot taborsky at gmail dot com -Status: Open +Status: Assigned Bug Type: SOAP related Operating System: CentOS 4.3 x86_64 PHP Version: 5.1.4 -Assigned To: +Assigned To: dmitry New Comment: Assigned to the maintainer. Previous Comments: ------------------------------------------------------------------------ [2006-06-12 09:01:37] michal dot taborsky at gmail dot com Description: ------------ The bug was reported and supposedly fixed long time ago as 29844 (and few more). But I get exactly the same result. The webservice works fine on other versions (namely 5.0.3) and other servers, but with this one it just returns NULL, though the __getLastResponse() contains proper response. Configure options: './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--without-kerberos' '--enable-ucd-snmp-hack' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--with-mysql' '--with-gd' '--with-dom' '--disable-dba' '--with-pgsql' '--enable-soap' Reproduce code: --------------- <?php try { $s= new SoapClient('authority.wsdl', array("trace" => true, "exceptions"=>true)); $r=$s->getTokens('aaa','bbb','ccc'); var_dump($r); } catch (SoapFault $e) { echo $e; } echo $s->__getLastRequest(); echo $s->__getLastResponse(); ?> Expected result: ---------------- string(129) "<?xml version="1.0"?> <authorityResponse> <error> <code>1</code> <message>Login incorrect</message> </error> </authorityResponse>" <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:getTokens><username>aaa</username><password>bbb</password><service>ccc</service></SOAP-ENV:getTokens></SOAP-ENV:Body></SOAP-ENV:Envelope> <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:getTokensResponse><tokens>&lt;?xml version="1.0"?&gt; &lt;authorityResponse&gt; &lt;error&gt; &lt;code&gt;1&lt;/code&gt; &lt;message&gt;Login incorrect&lt;/message&gt; &lt;/error&gt; &lt;/authorityResponse&gt;</tokens></SOAP-ENV:getTokensResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> Actual result: -------------- NULL <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:getTokens><username>aaa</username><password>bbb</password><service>ccc</service></SOAP-ENV:getTokens></SOAP-ENV:Body></SOAP-ENV:Envelope> <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:getTokensResponse><tokens>&lt;?xml version="1.0"?&gt; &lt;authorityResponse&gt; &lt;error&gt; &lt;code&gt;1&lt;/code&gt; &lt;message&gt;Login incorrect&lt;/message&gt; &lt;/error&gt; &lt;/authorityResponse&gt;</tokens></SOAP-ENV:getTokensResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37783&edit=1

« previous php.bugs (#98508) next »