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:15
Avg. Score:4.8 ± 0.4
Reproduced:14 of 14 (100.0%)
Same Version:11 (78.6%)
Same OS:7 (50.0%)
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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
 [2022-11-28 05:58 UTC] sheyda dot babi5161 at gmail dot com
Pleased to see your issue as I think I have the same problem   (https://www.hca-rewards.com/)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC