[wsf-c-dev] Dynamic Client API [ PHP ]

James Clark james at wso2.com
Mon Dec 18 22:22:24 PST 2006


On Tue, 2006-12-19 at 11:36 +0530, nandika wrote:
> Proxy Object Constructor
> WSClientProxy(array options, string interface);
> 
> Returns a proxy that can be used for Dynamic invocation for the
> Specified interface. Options array is similar to options passed
> in WSClient constructor. Options array is mandatory with the option
> "wsdl"=>"wsdl file location".

Allow this in the WSClient constructor as well.

Can you confirm that the wsdl file location is a URI and PHP will do its
WSDL caching thing automatically?  Would it be useful to be able to give
the WSDL as a string? Can this be supported with the current ext/soap
WSDL parsing code that we're using?

> If the wsdl file contains more than one interface, user should specify the
> interface.

I would prefer to specify the interface as an option.  The option should
be specifiable on the WSClient constructor as well (in which case it
specifies the default interface). If the interface is not specified,
then

- if the WSDL has only one interface, then use that

- if the WSDL has multiple interfaces, then do whatever ext/soap does
now (what does it do?)

> WSClientProxy::__getClient();
> returns the underlying WSClient Object.
> 
> Additions to WSClient API
> 
> WSClient::getProxy(string interface)
> 
> returns the WSClientProxy object for the specified interface.

Make the interface argument optional.  If getProxy doesn't specify the
interface, and the WSClient options do, then use that to determine the
proxy, otherwise do the same as the WSClientProxy constructor with no
interface specified.

James





More information about the Wsf-c-dev mailing list