I think your problem and the one in the link are different. It looks
to me like the problem you are encountering is because you are trying
to use a PHP interface to describe a complex type, which is not
supported in SCA. All complex types must be described using XSD for
SCA to correctly generate the WSDL (see http://uk2.php.net/manual/en/SCA.examples.structures.php).
At least, this is what SCA thinks you're trying to do. When I look at
SplSubject, it does not describe a data structure, because it is made
up of methods. It looks like you're wanting to be passed an
SplSubject (which would need to be a callback Web service), which you
then call. The only way to call another service using SCA is to have
it injected using the @reference annotation (see
http://uk.php.net/manual/en/SCA.examples.proxies.php). SCA does not
not have support for being passed a reference to another Web service
as part of a service method invocation.
I hope this helps.
Regards, Graham.
On 4 Aug, 15:58, Adrian <anol...@gmail.com> wrote:
> Hello all,
> I have the following code which produces this error: Fatal error:
> Uncaught SCA_RuntimeException: Namespace defined in @param not found
> in @types annotation: 'subject' thrown in /usr/share/php5/SCA/
> SCA_AnnotationReader.php on line 305
> if I comment out line 305 I get a good WSDL file.