[wsf-c-dev] [PHP] WSService API additions

nandika nandika at wso2.com
Thu Feb 15 15:49:01 PST 2007


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.
>
> 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.
>

It is not possible to pass additional parameters to the added function 
that comes outside of xml paylaod.
When I execute the php function using call_user_function , I only have 
access to the in message context and out message context .
message context contain the input soap envelope. So it is not possible 
to pass the expected mixed second argument.

Thanks
Nandika






More information about the Wsf-c-dev mailing list