SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute
| From: | Ignacio Marín Hernández | Date: | Fri, 19 Aug 2011 07:53:51 +0000 |
| Subject: | SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-314566@lists.php.net to get a copy of this message | ||
Hi everybody!
I've got some troubles trying to connect with a WS.
I'd tried that with natives functions:
$web_service="http://url_of_the_webservice.asmx?WSDL<http://url_of_the_webservice.asmx/?WSDL>
";
try {
$client = new SoapClient($web_service, array('soap_version' => SOAP_1_1,
'encoding'=>'utf-8',
'trace' => TRUE,
'STYLE' => SOAP_DOCUMENT,
'use' => SOAP_LITERAL
)
);
}
catch (SoapFault $exception) {
//ERROR!!!
echo "<h1>A exception has ocurred: </h1> ";
echo $exception;
}
and i recived this error:
A exception has ocurred:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unresolved element
'ref' attribute in /var/www/sites/version_2/SOAPdingus.php:20 Stack trace:
#0 /var/www/sites/version_2/
SOAPexample.php(20): SoapClient->__construct('http://services...', Array) #1
{main}
We are working with PHP 5.1.6 (but we tried too in a server with PHP 5.3.4
with the same error). You must know that we connect with others WS without
any kind of problems.