go to bug id or search bugs for
Although the documentation for SDO_DAS_XML does say that the parameter is an xsd file, I rather expected that, in common with many php functions that take a filename, I would be able to pass a URL e.g. http://localhost/MyService/ExchangeRate/ExchangeRateService.wsdl
I had supposed that the URL would be recognised and openwed with a file wrapper that understood http:
In fact I get some only vaguely relevant messages that indicate that the URL was not opened correctly.
$xmldas = SDO_DAS_XML::create('http://localhost/MyService/ExchangeRate/ExchangeRateService.wsdl');
the xml das created successfully
<b>Fatal error</b>: Uncaught exception 'SDO_DAS_XML_ParserException' with message 'SDO_DAS_XML::create - Unable to parse the supplied xsd file
2 parse error(s) occurred when parsing the file 'http://localhost/MyService/ExchangeRate/ExchangeRateService.wsdl':
1. Document is empty
2. Start tag expected, '<' not found
Add a Patch
Add a Pull Request
Sorry, but your problem does not imply a bug in PECL itself. For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support/ as this bug system is not the
appropriate forum for asking support questions.
Thank you for your interest in PECL.
Works for me:
echo SDO_DAS_XML::create( 'http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd');
38 types have been defined. The types and their properties are::
... and so on
It's actually libxml2 which is loading and parsing your URL.
Does, say, simplexml_load_file() exhibit the same problem with your URL?
It is stranger than you might think.
It seems that this is related to the size of the file
that is to be fetched.
If you just do
and you mess about with the file size you get somethign very strange: When the file is > 255 bytes and < about
3.5K, what you get is empty. It's not just file_get_contents, of course, but something lower down.
I am currently on 5.1.4. I need to retest this on 5.1.6 and if still there raise a PHP bug. Either way it is nothing to do with the XML DAS.
This strange 255/256 byte problem occurs on 5.1.6 so I have raised PHP problem 38826