php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45282 SoapClient has namespace issues when WSDL is distributed
Submitted: 2008-06-16 15:54 UTC Modified: 2009-04-28 18:43 UTC
Votes:125
Avg. Score:4.7 ± 0.6
Reproduced:116 of 118 (98.3%)
Same Version:93 (80.2%)
Same OS:82 (70.7%)
From: Martin dot Bosslet at googlemail dot com Assigned:
Status: Verified Package: SOAP related
PHP Version: 5.*, 6CVS (2009-04-28) OS: *
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 - 24 = ?
Subscribe to this entry?

 
 [2008-06-16 15:54 UTC] Martin dot Bosslet at googlemail dot com
Description:
------------
I have tried to access a web service whose WSDL is distributed among several files each of which contains references to several further XSDs. Now the WSDL itself is valid, as .NET or Java clients have accessed the services without any problems. But when creating a new instance of SoapClient it fails because I'm told that a certain element has already been defined. The problem is, that there are <message> elements with the same name, but they DO differ in namespaces.

Reproduce code:
---------------
$client = new SoapClient('someURI');

/* Please email me to get a copy of the WSDLs producing the error. They're too large to be posted here (although I tried to keep them small already) and I have no facility to make them available online. */

Expected result:
----------------
No error when parsing the WSDL.

Actual result:
--------------
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:  '<Element>' already defined in <FILE>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-12 18:13 UTC] clwells at nocworx dot com
This WSDL exhibits this behavior:

http://www.swsoft.com/webservices/vza/4.0.0/VZA.wsdl
 [2012-01-03 22:57 UTC] pumuckel at metropolis dot de
Any progress on this issue?
 [2012-12-07 22:21 UTC] thorgal_fr at yahoo dot fr
Same "already defined" problem, different cause : methods are defined for two distinct versions of SOAP.

http://wssie.eau-loire-bretagne.fr/AELB-IWS-MONITORING/services/MonitoringService?wsdl
 [2016-11-30 02:56 UTC] keymaker dot 7 at gmail dot com
Same here:

http://megamax.club/wsse-test13.php

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: <binding> 'BillServicePortBinding' already defined in
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 07:01:26 2019 UTC