Bug #62378 [Asn->Opn]: PHP incorrectly encodes null values in SOAP

From: Date: Fri, 14 Dec 2018 15:43:39 +0000
Subject: Bug #62378 [Asn->Opn]: PHP incorrectly encodes null values in SOAP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218453@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62378&edit=1 ID: 62378 Updated by: cmb@php.net Reported by: webmaster at guestwho dot com Summary: PHP incorrectly encodes null values in SOAP -Status: Assigned +Status: Open Type: Bug Package: SOAP related Operating System: FreeBSD 8.3-RELEASE PHP Version: 5.3.14 -Assigned To: cmb +Assigned To: Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2018-12-14 15:43:30] cmb@php.net cmb@ENTERPRISE:/mnt/c/Users/cmb/php-dev/php-src$ wget -O ../62378.wsdl https://w ww.sepe.es/contenidos/personas/formacion/centros_formacion/pdf/ProveedorCentroTF WS_20140619.wsdl --2018-12-14 16:40:58-- https://www.sepe.es/contenidos/personas/formacion/centros_formacion/pdf/ProveedorCentroTFWS_20140619.wsdl Resolving www.sepe.es (www.sepe.es)... 195.57.139.164 Connecting to www.sepe.es (www.sepe.es)|195.57.139.164|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 42232 (41K) [text/plain] Saving to: ‘../62378.wsdl’ ../62378.wsdl 100%[===================>] 41.24K --.-KB/s in 0.03s 2018-12-14 16:40:58 (1.21 MB/s) - ‘../62378.wsdl’ saved [42232/42232] cmb@ENTERPRISE:/mnt/c/Users/cmb/php-dev/php-src$ cat ../62378.php <?php $soap = new SoapClient(__DIR__ . '/62378.wsdl', array('trace' => true)); $soap->operation(null); echo $soap->__getLastRequest(); cmb@ENTERPRISE:/mnt/c/Users/cmb/php-dev/php-src$ sapi/cli/php ../62378.php Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Unknown required WSDL extension 'http://schemas.xmlsoap.org/ws/2004/09/policy' in /mnt/c/Users/cmb/php-dev/62378.php:3 Stack trace: #0 /mnt/c/Users/cmb/php-dev/62378.php(3): SoapClient->SoapClient('/mnt/c/Users/cm...', Array) #1 {main} thrown in /mnt/c/Users/cmb/php-dev/62378.php on line 3 Also note that 5.6 is no longer supported. ------------------------------------------------------------------------ [2018-12-14 10:06:55] pedro dot fernandez at editeformacion dot com I'm experiencing the same issue. Null values are not encoded as xsi:nil="true". My PHP version is 5.6.31 and the wsdl is placed here: https://www.sepe.es/contenidos/personas/formacion/centros_formacion/pdf/ProveedorCentroTFWS_20140619.wsdl ------------------------------------------------------------------------ [2018-11-18 22:43:15] cmb@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2018-11-04 14:01:13] cmb@php.net I cannot reproduce the reported behavior. If anybody still can with any of the actively supported PHP versions[1], please provide the used WSDL document. [1] <http://php.net/supported-versions.php> ------------------------------------------------------------------------ [2017-07-25 03:33:36] peter_liang at vtech dot com Please see if the solution in #74984 addresses this issue. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62378 -- Edit this bug report at https://bugs.php.net/bug.php?id=62378&edit=1

« previous php.bugs (#218453) next »