| Conditions | 5 |
| Paths | 12 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | public function execute(RequestDataHolder $rd) |
||
| 7 | { |
||
| 8 | if(Config::get('core.debug')) { |
||
| 9 | ini_set('soap.wsdl_cache_enabled', 0); |
||
| 10 | } |
||
| 11 | |||
| 12 | try { |
||
| 13 | $sc = AgaviContext::getInstance('soap'); |
||
| 14 | $wsdl = $sc->getRouting()->getWsdlPath(); |
||
| 15 | if($wsdl && is_readable($wsdl)) { |
||
| 16 | $this->setAttribute('wsdl', $wsdl); |
||
| 17 | return 'Success'; |
||
| 18 | } |
||
| 19 | } catch(Exception $e) { |
||
| 20 | } |
||
| 21 | return 'Error'; |
||
| 22 | } |
||
| 23 | } |
||
| 25 | ?> |