note 69121 added to function.soap-soapserver-addfunction

From: Date: Wed, 23 Aug 2006 22:42:54 +0000
Subject: note 69121 added to function.soap-soapserver-addfunction
Groups: php.notes 
Request: Send a blank email to php-notes+get-116240@lists.php.net to get a copy of this message
In response to comment by Nathan O'Sullivan about returning (or passing) a complex type, you can also use the stdClass() object. Assume you define a complex type like so: <xsd:complexType name="TestType"> <xsd:all> <xsd:element name="A" type="xsd:string" /> <xsd:element name="B" type="xsd:int" /> <xsd:element name="C" type="xsd:boolean" /> </xsd:all> </xsd:complexType> To use an object in place of an array you can do: $test = new stdClass(); $test->A = "test string"; $test->B = 45; $test->C = false; $result = $client->Test($test); ---- Server IP: 64.71.164.2 Probable Submitter: 142.77.11.120 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapserver-addfunction.php Edit -- https://master.php.net/note/edit/69121 Del: integrated -- https://master.php.net/note/delete/69121/integrated Del: useless -- https://master.php.net/note/delete/69121/useless Del: bad code -- https://master.php.net/note/delete/69121/bad+code Del: spam -- https://master.php.net/note/delete/69121/spam Del: non-english -- https://master.php.net/note/delete/69121/non-english Del: in docs -- https://master.php.net/note/delete/69121/in+docs Del: other reasons-- https://master.php.net/note/delete/69121 Reject -- https://master.php.net/note/reject/69121 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116240) next »