![]() |
PHP5 soap capabilities in a library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: PHP5 soap capabilities in a library (/showthread.php?tid=2684) |
PHP5 soap capabilities in a library - El Forum - 08-18-2007 [eluser]tylderdurden[/eluser] Hi there, I'm trying to implement a generic library that will allow for use of PHP5's built in SoapClient capabilities, but I'm having trouble wrapping my head around it all. What I want to accomplish A library that I can load through $this->load->library('soapclient') while having the config stored in the right place in application/config. This library will load up a WDSL file for web services that will let me use the methods are functions of the object. What I've tried I first tried it with the controller (just to see if it could work) with the following code: Code: <?php PHP just dies at this point with a "PHP has encountered an Access Violation at 010A9A8A". If I use var_dump($client->__getFunctions());, then it has no problems. I gave up there and tried to create a library, Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Sufficed to say, it didn't work either and I'm just totally lost and confused. Any help in pointing me to the write place would be greatly appreciated. PHP5 soap capabilities in a library - El Forum - 08-19-2007 [eluser]tylderdurden[/eluser] Making things way too complicated for myself. ![]() I figured it out. Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |