|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Creation of WSDL file in SCAHi,
In my job, the production environment does not allow that PHP has write access to the public folders. So I have many problems with the dynamically creation of the WSDL file by SCA. I wrote a code that allows the WSDL file is created in another directory. Just i defined a WSDL_DIR before the "include 'SCA.php'; " Like this: <?php ........... define('WSDL_DIR', '../../wsdl/'); ........ include "SCA/SCA.php"; ........... class Test{ ............ } ?> and, in "SCA/soap/ServiceRequestHandler.php", after the line 47... //uses the dir defined in WSDL_DIR to write wsdl if (defined('WSDL_DIR')){ $wsdl_filename = dirname($calling_component_filename) . WSDL_DIR . "$class_name.wsdl"; } else{ $wsdl_filename = str_replace('.php', '.wsdl', $calling_component_filename); } So, this code works fine for me. I would like to make this code public for community. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "phpsoa" group. To post to this group, send email to phpsoa@... To unsubscribe from this group, send email to phpsoa+unsubscribe@... For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Creation of WSDL file in SCAHi Marcelo, Thanks for the suggested update to allow WSDL generation to be redirected. This looks like a useful enhancement. We'll take a look and see about incorporating it. It's been quite a while since we did a release so it would be good to get this rolled in with some other outstanding items. Regards, Graham. On 27 Jan, 12:49, Marcelo Richard Valverde <valverde.marc...@...> wrote: > Hi, > > In my job, the production environment does not allow that PHP has write > access to the public folders. > So I have many problems with the dynamically creation of the WSDL file by > SCA. > > I wrote a code that allows the WSDL file is created in another directory. > > Just i defined a WSDL_DIR before the "include 'SCA.php'; " > > Like this: > > <?php > ........... > define('WSDL_DIR', '../../wsdl/'); > ........ > include "SCA/SCA.php"; > ........... > class Test{ > ............} > > ?> > > and, in "SCA/soap/ServiceRequestHandler.php", after the line 47... > > //uses the dir defined in WSDL_DIR to write wsdl > if (defined('WSDL_DIR')){ > $wsdl_filename = dirname($calling_component_filename) . WSDL_DIR . > "$class_name.wsdl";} else{ > > $wsdl_filename = str_replace('.php', '.wsdl', > $calling_component_filename); > > } > > So, this code works fine for me. > > I would like to make this code public for community. > > Thanks > > ServiceRequestHandler.php.valverde > 5KViewDownload You received this message because you are subscribed to the Google Groups "phpsoa" group. To post to this group, send email to phpsoa@... To unsubscribe from this group, send email to phpsoa+unsubscribe@... For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Creation of WSDL file in SCAThis looks a great idea. I have just added it and checked it in. I wasn't sure that WSDL_DIR was quite unique enough - I'd rather have it in a namespace or an SCA at front or something - but actually I expect it is good enough so I left it as it was. I agree we should have a release, especially since it looks like we are dead/asleep/hibernating/moribund - as noted in other posts. I will have a look around the recent posts and see what needs fixing, then make a release of the current branch in the next few days. Matthew On Feb 10, 1:36 pm, Graham Charters <gchart...@...> wrote: > Hi Marcelo, > > Thanks for the suggested update to allow WSDL generation to be > redirected. This looks like a useful enhancement. We'll take a look > and see about incorporating it. It's been quite a while since we did > a release so it would be good to get this rolled in with some other > outstanding items. > > Regards, Graham. > > On 27 Jan, 12:49, Marcelo Richard Valverde > > <valverde.marc...@...> wrote: > > Hi, > > > In my job, the production environment does not allow that PHP has write > > access to the public folders. > > So I have many problems with the dynamically creation of the WSDL file by > > SCA. > > > I wrote a code that allows the WSDL file is created in another directory. > > > Just i defined a WSDL_DIR before the "include 'SCA.php'; " > > > Like this: > > > <?php > > ........... > > define('WSDL_DIR', '../../wsdl/'); > > ........ > > include "SCA/SCA.php"; > > ........... > > class Test{ > > ............} > > > ?> > > > and, in "SCA/soap/ServiceRequestHandler.php", after the line 47... > > > //uses the dir defined in WSDL_DIR to write wsdl > > if (defined('WSDL_DIR')){ > > $wsdl_filename = dirname($calling_component_filename) . WSDL_DIR . > > "$class_name.wsdl";} else{ > > > $wsdl_filename = str_replace('.php', '.wsdl', > > $calling_component_filename); > > > } > > > So, this code works fine for me. > > > I would like to make this code public for community. > > > Thanks > > > ServiceRequestHandler.php.valverde > > 5KViewDownload You received this message because you are subscribed to the Google Groups "phpsoa" group. To post to this group, send email to phpsoa@... To unsubscribe from this group, send email to phpsoa+unsubscribe@... For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |