|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48013 soap/php_sdl.c wsdl parser don't support the 2.0 format, a w3c recommendation
Submitted: 2009-04-19 04:58 UTC Modified: 2011-01-02 02:39 UTC
Avg. Score:4.5 ± 1.0
Reproduced:15 of 16 (93.8%)
Same Version:6 (40.0%)
Same OS:4 (26.7%)
From: rapsys at free dot fr Assigned:
Status: Open Package: SOAP related
PHP Version: 5.2.9 OS: Mandriva Linux 2009.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rapsys at free dot fr
New email:
PHP Version: OS:


 [2009-04-19 04:58 UTC] rapsys at free dot fr
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 :

A wsdl 1.1 example :

The 2.0 format june 2007 w3c recommandation is there :

A wsdl 2.0 example :

Reproduce code:
$client = new SoapClient(

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-19 05:04 UTC] 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. "
 [2011-01-02 02:39 UTC]
-Package: Feature/Change Request +Package: SOAP related
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 04:03:38 2021 UTC