complex type with single element in sequence is classified as Array

From: Date: Tue, 13 Apr 2004 10:33:18 +0000
Subject: complex type with single element in sequence is classified as Array
Groups: php.soap 
Request: Send a blank email to php-soap+get-1486@lists.php.net to get a copy of this message
Hi, I'm having problem with complex types with single element in sequence and are currently classified as an array. <complexType ..> <sequence ..> <element ../> </sequence> </complexType> or in the form, <complexType ..> <complexContent> <extension ..> <sequence> <element ../> </sequence> </extension> </complexContent> </complexType> i finally found 1 of the lines that is doing it, SOAP/WSDL.php, line 1474. It seems that there is a consensus that if there is only 1 element in the sequence, it's assumed to be an Array type (also at line 699) even though it's not always the case. Is there anything that can be done? e.g. manually override the types? If i recall correctly, PERL's SOAP::Lite and MS SOAP both allow this mechanism. Thanks, Ray Tsang

« previous php.soap (#1486) next »