Re[2]: [PEAR] SOAP + Config-Package (XML-Container) -> Fatal Error
| From: | Christian Michel @ amplix | Date: | Fri, 05 May 2006 08:27:19 +0000 |
| Subject: | Re[2]: [PEAR] SOAP + Config-Package (XML-Container) -> Fatal Error | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23952@lists.php.net to get a copy of this message | ||
Hello
Friday, May 5, 2006, 1:47:31 AM, you wrote:
> I've looked at both your emails and without some sample code it'll be
> impossible to track down exactly whats going wrong in there. There
> should be no reason for Config and SOAP_Error to conflict with each
> other. I have used both together quite extensively without issue.
Here's the original code from the application:
[file1]
$server =& new SOAP_Server();
$server->_auto_translation = true;
// initialize the pathfinder class
$webservice = new newsletterServer();
$server->addObjectMap($webservice,"http://{$_SERVER['HTTP_HOST']}#newsletterServer");
[file2] - class file
require_once('SOAP/Server.php');
require_once('SOAP/Disco.php');
require_once('Config.php');
class newsletterServer{
function newsletterServer(){
some dispatch_maps
some type_defs, both have nothing to do with this
error
$config = new Config();
$this->configfile =
$config->parseConfig(/pathToXmlFile/config.xml","XML");
$this->configData = $this->configfile->toArray();
}
}
when commenting out the parseConfig-line or using an other Container,
like phparray, no error occurs, creating the new Config-instance
throws no error.
Greetings
Christian Michel