note 81750 added to function.soap-soapserver-handle

From: Date: Wed, 12 Mar 2008 12:39:13 +0000
Subject: note 81750 added to function.soap-soapserver-handle
Groups: php.notes 
Request: Send a blank email to php-notes+get-136966@lists.php.net to get a copy of this message
Seems pretty logical once you find the solution, but it took me quite a while to figure this one out: If you are using WSDL based SOAP requests and you have more than one operation in your binding (with the same parameters), make sure the <soap:operation> style is set to rpc, NOT body! When you specify 'body' here, all that will be transmitted in the request is the parameters for the function call, and SoapServer->handle() will use the first function it finds with the same parameter-makeup to handle the call. ie If you have 2 functions: <?php function One ( string $blah ); function Two ( string $blah ); ?> Making a client call with SoapClient -> Two ( 'test' ); will result in One ( ) being called when your 'type' is set to 'body' The actual method to call will only be included in the request when your type is set to 'rpc', resulting in the expected behavior ---- Server IP: 69.147.83.197 Probable Submitter: 78.21.236.166 ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapserver-handle.php Edit -- https://master.php.net/note/edit/81750 Del: integrated -- https://master.php.net/note/delete/81750/integrated Del: useless -- https://master.php.net/note/delete/81750/useless Del: bad code -- https://master.php.net/note/delete/81750/bad+code Del: spam -- https://master.php.net/note/delete/81750/spam Del: non-english -- https://master.php.net/note/delete/81750/non-english Del: in docs -- https://master.php.net/note/delete/81750/in+docs Del: other reasons-- https://master.php.net/note/delete/81750 Reject -- https://master.php.net/note/reject/81750 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136966) next »