Page 1 of 1

PHP5 SoapClient Namespacing

Posted: Thu Feb 26, 2009 3:56 pm
by prospermedia
Hello, DevNetwork. First time poster here.

I have a question about PHP5 + SOAP. It involves namespacing.

The background: I have created a SoapServer that has a number of registered classes via the setClass method. This will eventually be modular, so the setClass function is called for each file in a directory that will contain classes to be included.

The problem: Some of these libraries will be from third parties. If two of them have a function by the same name, it will not be callable from the SoapClient.

The question: Is there a way to specify the namespace of a function? For instance, being able to do:

$client = SoapClient('file.wsdl');
$client->Namespace->method($params);

Instead of:

$client= SoapClient('file.wsdl');
$client->method($params);

I eagerly await your answer. Thanks in advance...

Re: PHP5 SoapClient Namespacing

Posted: Fri Feb 27, 2009 3:39 pm
by prospermedia
bump...

Come on - does nobody have an answer? Even a helpful hint?