Une erreur s'est produite.
Veuillez répéter votre recherche. Si le problème persiste, veuillez nous en informer.

Retour à la page d'accueil.

Backtrace

Thrown at: /apps/_shared/frontend2.core/releases/20120130-171149/api/model/http.php (84)

Class/MethodFileLine
api_model_http::getData48
75
        $status = (isset($info['http_code'])) ? $info['http_code'] : 0;
76
        if (empty($data)) {
77
            throw new api_exception_Backend(
78
                api_exception::THROW_FATAL,
79
                array('url' => $this->url),
80
                0,
81
                "Empty response returned.");
82
        } else if ($status != 200) {
83
            throw new api_exception_Backend(
84
                api_exception::THROW_FATAL,
85
                array('url' => $this->url),
86
                0,
87
                "Got a bad HTTP status: " . $status);
88
        }
89
90
        return $data;
api_model_http::getDOM117
46
    public function getDOM() {
47
        $xmls = $this->getData();
48
        
49
        $dom = new DOMDocument();
50
        if ($dom->loadXML($xmls) === false) {
51
            throw new api_exception_XmlParseError(api_exception::THROW_FATAL, $this->url);
52
        }
53
54
        return $dom;
api_model_backend_get::getDOMlocalinc/api/command/searchroute.php81
115
    public function getDOM() {
116
        $dom = parent::getDOM();
117
118
        // Add some attributes on the root node
119
        $doc = $dom->documentElement;
120
        $doc->setAttribute('server', $this->serverName);
121
        $doc->setAttribute('command', $this->commandName);
122
        foreach ($this->nodeAttributes as $key => $value) {
123
            $doc->setAttribute($key, $value);
api_command_searchroute::doSearchlocalinc/api/command/searchroute.php59
72
        array_push($this->data, 
73
            api_model_factory::get('array', array(
74
                array('addressFromPath' => $this->addressPath) )
75
            )
76
        );
77
        
78
        $this->data['geocoding'] = $this->getAddressModel($address);
79
        
80
        $dom = $this->data['geocoding']->getDom();
81
        
82
        // Make sure that the path contains normalized form of the address 
83
        $normalizedAddress = $this->getNormalizedAddress($dom);
84
        
85
        if (! is_null($normalizedAddress) ) {
86
            $this->ensureNormalizedAddress($normalizedAddress);
87
        }
api_command_searchroute::__construct170
50
        }
51
        
52
        if ($addressPath !== '' && (! is_null($addressTo))) {
53
            $this->doRoute($addressPath, $addressTo);
54
            return;
55
        }
56
        
57
        if ($addressPath !== '' && (! $FROM_OR_TO)) {
58
            $this->doSearch($addressPath);
59
            return;
60
        }
61
        
62
        if ($addressWhere !== '' && (! $FROM_OR_TO)) {
63
            $this->doSearch($addressWhere);
64
            return;
65
        }
api_controller::loadCommand113
161
            } else {
162
                // Inform that both classes could not be found
163
                throw new api_exception_NoCommandFound("Command $cmd or $cmd_old not found.");
164
            }
165
        }
166
167
        $config = api_config::getInstance();
168
        $config->load($route['command']);
169
        $this->command = new $cmd($route);
170
        $this->route = &$route;
171
    }
api_controller::processindex.php6
110
    public function process() {
111
        try {
112
            $this->loadCommand();
113
            $this->processCommand();
114
            $this->prepareAndDispatch();
115
        } catch(Exception $e) {
116
            $this->catchFinalException($e);
117
        }
118
119
        return true;