php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46679 WSDL Error SOAP-ERROR unresolved element 'ref'
Submitted: 2008-11-26 09:23 UTC Modified: 2009-05-06 21:25 UTC
Votes:14
Avg. Score:4.8 ± 0.4
Reproduced:13 of 13 (100.0%)
Same Version:10 (76.9%)
Same OS:6 (46.2%)
From: internet at cardiff dot fr Assigned:
Status: Verified Package: SOAP related
PHP Version: 5.*, 6CVS (2009-05-05) OS: *
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: internet at cardiff dot fr
New email:
PHP Version: OS:

 

 [2008-11-26 09:23 UTC] internet at cardiff dot fr
Description:
------------
When parsing a validated WSDL Structure (WSDL is government issued)
php throws  : 
Error: WSDL Error Details: SOAP-ERROR: Parsing Schema: unresolved element 'ref'

Error is declared solved in 5.2.5 but is not...

Reproduce code:
---------------
 try
 {
	$client = new SoapClient('http://www.cardiff.fr/test/wsdl/TestImmatService/TestImmatService.wsdl', 
	array("trace" => true, "exceptions" => true, 'soap_version' => SOAP_1_2));
}

Expected result:
----------------
No errors thrown


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-27 08:57 UTC] internet at cardiff dot fr
Description:
------------
When parsing a validated WSDL Structure (WSDL is government issued)
php throws  : 
Error: WSDL Error Details: SOAP-ERROR: Parsing Schema: unresolved
element 'ref'

Error is declared solved in 5.2.5 but is not...

Reproduce code:
---------------
 try
 {
	$client = new
SoapClient('http://www.nycotix.net/test/wsdl/ImmatTestService/ImmatTestSe
rvice.wsdl', 
	array("trace" => true, "exceptions" => true, 'soap_version' =>
SOAP_1_2));
}

Expected result:
----------------
No errors thrown
 [2010-12-03 04:18 UTC] dpholden at gmail dot com
I can confirm that this error is still present, only in later version of PHP (Im using PHP 5.3)  the error message differs slightly.

SOAP-ERROR: Parsing Schema: can't import schema from 'http://example.com/myfile.xsd'

Where the WSDL trying to be validated contains an import to the XSD

<xs:import namespace="mynamespace" schemaLocation="http://example.com/myfile.xsd"/>

And the XSD file: http://example.com/myfile.xsd contains ref elements:

<xs:element ref="ota:OTA_HotelInvCountNotifRQ"/>
 [2013-09-23 11:07 UTC] samvaughton at gmail dot com
Also confirming this bug still exists for the WSDL 
https://www.smtpi.siteminder.com/pmsxchangev2/services/highlevel/pmsxchange.wsdl 
with a standard connect via new SoapClient();

PHP Version 5.3.13
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC