PHP5 SoapClient Namespacing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
prospermedia
Forum Newbie
Posts: 2
Joined: Fri Feb 20, 2009 10:46 am

PHP5 SoapClient Namespacing

Post 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...
prospermedia
Forum Newbie
Posts: 2
Joined: Fri Feb 20, 2009 10:46 am

Re: PHP5 SoapClient Namespacing

Post by prospermedia »

bump...

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