Req #48013 [Opn->Dup]: soap/php_sdl.c wsdl parser don't support the 2.0 format, a w3c recommendation

From: Date: Tue, 01 Feb 2022 14:52:18 +0000
Subject: Req #48013 [Opn->Dup]: soap/php_sdl.c wsdl parser don't support the 2.0 format, a w3c recommendation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239402@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=48013&edit=1 ID: 48013 Updated by: cmb@php.net Reported by: rapsys at free dot fr Summary: soap/php_sdl.c wsdl parser don't support the 2.0 format, a w3c recommendation -Status: Open +Status: Duplicate Type: Feature/Change Request Package: SOAP related Operating System: Mandriva Linux 2009.1 PHP Version: 5.2.9 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Closing in favor of <https://github.com/php/php-src/issues/8019>. Previous Comments: ------------------------------------------------------------------------ [2009-04-19 05:04:55] me at google dot com " The SOAP extension can be used to write SOAP Servers and Clients. It supports subsets of ? SOAP 1.1, ? SOAP 1.2 and ? WSDL 1.1 specifications. " ------------------------------------------------------------------------ [2009-04-19 04:58:59] rapsys at free dot fr Description: ------------ I tried to use php-soap extention with a wsdl 2.0 format file and I discovered that the parser only understand old wsdl 1.1 format. The 1.1 format documentation is there : http://www.w3.org/TR/wsdl A wsdl 1.1 example : http://devzone.zend.com/node/view/id/689#Heading7 The 2.0 format june 2007 w3c recommandation is there : http://www.w3.org/TR/wsdl20/ A wsdl 2.0 example : http://en.wikipedia.org/wiki/Web_Services_Description_Language#Example_WSDL_file Reproduce code: --------------- <?php $client = new SoapClient( '/path/wsdl/example.wsdl' ); Actual result: -------------- PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't find <definitions> in '/path/wsdl/example.wsdl' in /path/client.php on line 4 PHP Stack trace: PHP 1. {main}() /path/client.php:0 PHP 2. SoapClient->SoapClient() /path/client.php:4 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=48013&edit=1

« previous php.bugs (#239402) next »