|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-04-13 11:11 UTC] pmattivi at programator dot net
Description:
------------
I have a webservice with following functions:
functionx(String, String, String, String);
functionx(String, String, String);
when I create SoapClient and call __getFunctions() I get twice the same method:
functionx(String, String, String, String);
then I'm unable to call second method with 3 params. The function with 4 params is allways called when I do a call with 3 params.
Reproduce code:
---------------
$client = new SoapClient("https://www.dummyurl.com/service?wsdl");
$functions = $client->__getFunctions();
print_r($functions);
Expected result:
----------------
functionx(String, String, String, String);
functionx(String, String, String);
Actual result:
--------------
functionx(String, String, String, String);
functionx(String, String, String, String);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 23:00:02 2025 UTC |
Reproduced with the latest snapshot (5.2-200904030630). The SOAP code cannot distinguish two operations with the same name but different signatures. Expected result: ---------------- print_r($client->__getFunctions()); Array ( [0] => string gfindObjects(string $query, int $hitPageStart, int $hitPageSize, int $snippetsMax, int $fieldMaxLength, string $indexName, string $resultPageXslt) [1] => string gfindObjects(string $query, int $hitPageStart, int $hitPageSize, int $snippetsMax, int $fieldMaxLength, string $indexName, string $sortFields, string $resultPageXslt) ) Actual result: -------------- print_r($client->__getFunctions()); Array ( [0] => string gfindObjects(string $query, int $hitPageStart, int $hitPageSize, int $snippetsMax, int $fieldMaxLength, string $indexName, string $resultPageXslt) [1] => string gfindObjects(string $query, int $hitPageStart, int $hitPageSize, int $snippetsMax, int $fieldMaxLength, string $indexName, string $resultPageXslt) )