[wsf-c-dev] [PHP] MEP problem for one way operations

James Clark james at wso2.com
Wed Feb 21 20:40:30 PST 2007


> I do not think, giving a yet another option for the PHP user to specify 
> the MEP is a good idea.

+1

>  However, looking at the PHP function we can tell 
> if an operation is one-way, if the function does not return anything.

I think that's the natural approach.

>  In 
> Zend API (C code), I could not find a way to tell whether a given PHP 
> function would return something or not without  calling that function. 

If you can't do this, then could we add the operation at the C level
lazily?  When an operation is added to a service at the PHP level, don't
add the operation at the C level, but keep it as a pending operation at
the PHP level.  If an operation is invoked and the C level can't find an
appropriate operation, then check the pending operations and invoke the
appropriate one.  Only then add it at the C level using the return value
to determine the MEP.

Don't we have the same problem in generating the WSDL?

James






More information about the Wsf-c-dev mailing list