|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32141 Cannot create SoapClient object from WSDL
Submitted: 2005-02-28 23:34 UTC Modified: 2005-03-20 18:10 UTC
Avg. Score:4.2 ± 0.7
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:2 (40.0%)
From: ddonovan at villagepress dot com Assigned: dmitry (profile)
Status: No Feedback Package: SOAP related
PHP Version: 5CVS-2005-02-28 (dev) OS: Linux (fedora C3)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ddonovan at villagepress dot com
New email:
PHP Version: OS:


 [2005-02-28 23:34 UTC] ddonovan at villagepress dot com
I can parse the .WSDL file and call the functions using nuSOAP, but not using PHP5.  It has also been shown to work with JAVA/AXIS and .NET.

I need the WSDL caching functionality of the PHP5 SOAP procedures otherwise I might stick with nuSAOP.

Note that in the error message there should be another word between "unexpeted" and "in complexType", but there is not.

Reproduce code:
  $s = new SoapClient($url);//line #17 as ref'd in error

Expected result:
A useable instance of a SoapClient object.

Actual result:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unexpected in complexType in /var/www/html/phpSOAP.html:17 Stack trace: #0 /var/www/html/phpSOAP.html(17): SoapClient->__construct('', Array) #1 {main} thrown in /var/www/html/phpSOAP.html on line 17


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-05 13:34 UTC]
At first I need your WSDL file to understand the problem.
You can mail it to me.

At second, you probably look into error message from web browser, so it removes some part of message, ext/soap writes somthing like "unexpected <...> in complexType".
You can look into error_log.
 [2005-03-20 18:10 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2006-05-15 13:47 UTC] polarfox at polarfox dot net
I get this on 5.1.2.

I cannot provide you with WSDL, because I don't think we have right to give it up, but Error is much like this one.

-- clip of error ---

 [faultstring] => SOAP-ERROR: Parsing Schema: unexpected  in complexType
    [faultcode] => WSDL
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 08:01:28 2024 UTC