Re: Class based method overloading
| From: | Ammarmar | Date: | Wed, 18 Jul 2007 10:21:11 +0000 |
| Subject: | Re: Class based method overloading | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2575@lists.php.net to get a copy of this message | ||
Hi,
This is a rather unusual WSDL (especially the binding section with named inputs etc). I assume you have no way to rewrite it.
PHP5 does not support overloading functions.
Have you tried to create multiple functions named after portType operations? (getSupSet, getSupSet1 etc)
.... <wsdl:portType name="MyServer"> <wsdl:operation name="getSupSet" parameterOrder="user"> <wsdl:input message="impl:getSupSetReq" name="getSupSetReq"/> <wsdl:output message="impl:getSupSetResp" name="getSupSetResp"/> </wsdl:operation> <wsdl:operation name="getSupSet1" parameterOrder="user device"> <wsdl:input message="impl:getSupSetReq1" name="getSupSetReq1"/> <wsdl:output message="impl:getSupSetResp1" name="getSupSetResp1"/> </wsdl:operation> ... </wsdl:portType> ....