ID: 48013 Comment by: me at google dot com Reported By: rapsys at free dot fr Status: Open Bug Type: SOAP related Operating System: Mandriva Linux 2009.1 PHP Version: 5.2.9 New Comment:
" 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. " Previous Comments: ------------------------------------------------------------------------ [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 http://bugs.php.net/?id=48013&edit=1
