[wsf-c-dev] [PHP] WSService API additions
James Clark
james at wso2.com
Thu Feb 15 03:02:20 PST 2007
On Thu, 2007-02-15 at 15:23 +0600, Samisa Abeysinghe wrote:
> It looks to me that we are into a problem with the wrapper.
> The problem scenario is like this.
> 1. In the SOAP ext service code, user adds the function 'foo()' to be an
> operation of the service. This function, including the service
> implementation is in a script called bar.php
> 2. Our wrapper now needs to call this function, but our service object
> is created in the wrapper source SoapServer.php
> 3. Now when handle() is called, we create the WSService object in
> handle() wrapper in SoapServer.php and tries to call 'foo()' in bar.php.
> Our wrapper does not know anything about bar.php, and hence nothing
> anout 'foo()' function.
> 4. Hence the wrapper function that we were talking about to call this
> method form user code needs to use reflection. Our wrapper function in
> turn has to be called by service code of our C extension.
I don't completely understand your explanation. Are you saying
reflection solves the problem? but maybe PHP's "Variable Functions"
would help here:
http://www.php.net/manual/en/functions.variable-functions.php
> As of now, our operation implementations only take a WSMessage as a
> parameter. But we have to support an API where it takes a second mixed
> argument.
Is this the only remaining problem?
James
More information about the Wsf-c-dev
mailing list