|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-09-12 08:03 UTC] mfp@php.net
Description: ------------ 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. Reproduce code: --------------- $xmldas = SDO_DAS_XML::create('http://localhost/MyService/ExchangeRate/ExchangeRateService.wsdl'); Expected result: ---------------- the xml das created successfully Actual result: -------------- <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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
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 echo file_get_contents('http://localhost/MyService/AddressBook/in fo.xsd'); 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.