Getting "No configuration info found for sample.svc"

May 9, 2012 at 6:59 PM

I'm getting this error when reaching my <URL>/sample.svc endpoint. My directory structure is:





ODataProducer (symlink to library->ODataProducer)


service.config.xml (generated by MySQL Connector)


the .php file generated by MySQL Connector

The service.config.xml file has:

<?xml version="1.0"?><configuration> <services>  <Service Name="sample.svc">   <path>services/sample/sampleDataService.php</path>   <classname>sampleDataService</classname>   <baseURL>/sample.svc</baseURL>  </Service> </services></configuration>

The rewrite rule is in place (as I'm getting redirected to index.php when I call sample.svc). I've tried copying service.config.xml to root to no avail. Any pointers?

May 9, 2012 at 7:00 PM

I'm running PHP 5.3 on Apache 2.2.16 on Debian.

May 9, 2012 at 7:33 PM

The dispatcher is definitely finding and reading service.config.xml as I've dumped the $xml and I see this:

object(SimpleXMLElement)#8 (1) {
  object(SimpleXMLElement)#9 (1) {
    object(SimpleXMLElement)#10 (4) {
      array(1) {
        string(10) "sample.svc"
      string(37) "services/sample/sampleDataService.php"
      string(17) "sampleDataService"
      string(11) "/sample.svc"
May 9, 2012 at 7:57 PM

I managed to get around this by changing the starting path of the XPath queries in ODataProducer/Common/ServiceConfig.php from / to //