note 51938 added to function.soap-soapclient-soapcall

From: Date: Fri, 15 Apr 2005 18:46:39 +0000
Subject: note 51938 added to function.soap-soapclient-soapcall
Groups: php.notes 
Request: Send a blank email to php-notes+get-88072@lists.php.net to get a copy of this message
When calling over SOAP to a .NET application, you may end up with an object as a result instead of a simple type, even if you're just grabbing a simple type (like a boolean result). Use a property accessor to get the actual result, like this: <?php $client = new SoapClient("http://server/myservice.asmx?WSDL"); $objectresult = $client->MyMethod($param1, $param2); $simpleresult = $objectresult->MyMethodResult; ?> Note that .NET seems to name the result MethodNameResult for method MethodName. ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-soapcall.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51938 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51938&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51938&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51938&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51938&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51938&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51938&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88072) next »