php.net |  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: 2022-02-01 14:52 UTC
Votes:21
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: cmb (profile)
Status: Duplicate Package: SOAP related
PHP Version: 5.2.9 OS: Mandriva Linux 2009.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
18 + 26 = ?
Subscribe to this entry?

 
 [2009-04-19 04:58 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] jani@php.net
-Package: Feature/Change Request +Package: SOAP related
 [2022-02-01 14:52 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2022-02-01 14:52 UTC] cmb@php.net
Closing in favor of <https://github.com/php/php-src/issues/8019>.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC