|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57406 [WSDL] SOAP-ERROR: Parsing WSDL: Unexpected WSDL element address
Submitted: 2006-11-29 08:57 UTC Modified: 2006-12-01 10:31 UTC
From: Assigned: tuscany (profile)
Status: Closed Package: SCA_SDO (PECL)
PHP Version: 5.1.6 OS: WinXP
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:
New email:
PHP Version: OS:


 [2006-11-29 08:57 UTC]
Whenever the we use the soapclient to load WSDL we have generated we get a SoapFault with the text:

"[WSDL] SOAP-ERROR: Parsing WSDL: Unexpected WSDL element <address> "

The root cause seems to be that the WSDL has changed between 1.0.4.and 1.1.0. 

The reproduce code generates a small amount of WSDL. The <address> element is created in the SOAP namespace and in 1.0.4 output it is prefaced with "tns2:", in the 1.1.0 output it is not. Possibly this is still correct WSDL, I don't know, but anyway the net effect is that the PHP soap client will not load this WSDL and the SOAP half of SCA does not work.

Reproduce code:

// you also need the three xsds out of SCA

define('SOAP_NAMESPACE', '');

$xmldas        = SDO_DAS_XML::create('wsdl-all.xsd');
$wsdl_doc      = $xmldas->createDocument();
$wsdl          = $wsdl_doc->getRootDataObject();
$service       = $wsdl->createDataObject('service');
$port          = $service->createDataObject('port');
$soap_address  = $xmldas->createDataObject(SOAP_NAMESPACE, 'tAddress');
$soap_address->location = '';
$port->address = $soap_address;

echo phpversion('sdo') . "\n";
echo $xmldas->saveString($wsdl_doc,2);

Expected result:
this is what we get with 1.0.4

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="" xsi:type="tDefinitions" xmlns:tns="" xmlns:tns2="" xmlns:xsi="">
      <tns2:address xsi:type="tAddress" location=""/>

Actual result:
this is what we get with 1.1.0

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="" xmlns:tns="" xmlns:tns2="" xmlns:xsi="">
      <address xsi:type="tns2:tAddress" location=""/>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-29 09:56 UTC]
For info, the second of the SCA samples that we ship also catches this:

Calling a remote SCA component using a PHP script.

Attempting to access HelloService, to trigger the automatic generation of WSDL for this component...

Calling HelloService as a Web service...

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Unexpected WSDL element <address> in c:\php\PEAR\SCA\SCA_SoapProxy.php:136 Stack trace: #0 c:\php\PEAR\SCA\SCA_SoapProxy.php(136): SoapClient->SoapClient('C:\Program File...', Array) #1 c:\php\PEAR\SCA\SCA.php(241): SCA_SoapProxy->__construct('C:\Program File...') #2 C:\Program Files\Apache Group\Apache2\htdocs\Samples\ScriptCallingRemoteSCAComponent\HelloClient.php(37): SCA::getService('./HelloService....') #3 {main} thrown in c:\php\PEAR\SCA\SCA_SoapProxy.php on line 136
 [2006-12-01 10:31 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

I've checked a fix into HEAD. Will update the package soon.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Nov 27 02:03:14 2021 UTC