Hi Mike I had to do a presentation this morning so just got back to looking at this. I started thinking about the API approach and thought I would mock it up with what we have already before making changes. So repeated the SCA initialization call that happens internally. I had a HelloWorld test where I moved the service file into a lib directory and constructd a php file that includes it.
<?php include 'lib/HelloWorld.php'; $_SERVER['SCRIPT_FILENAME'] = 'C:\phpscripts\lib\HelloWorld.php'; SCA::initComponent('C:\phpscripts\lib\HelloWorld.php'); ?> So I'm sure resetting SCRIPT_FILENAME is a dodgy thing to do and I wouln't recommend it but I just allows me to sidestep the SCA test and get it running. So we could replace this with some SCA api like SCA:dispatch("filename"); Where filename is the name of the file/service you want to dispatch to. Does that sound OK. I would like to make filename servicename instead but not sure I can do that yet. Regards Simon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "phpsoa" group. To post to this group, send email to phpsoa@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en -~----------~----~----~----~------~----~------~--~---