How to change encoding of arrays?

From: Date: Mon, 08 Mar 2004 15:22:14 +0000
Subject: How to change encoding of arrays?
Groups: php.soap 
Request: Send a blank email to php-soap+get-1418@lists.php.net to get a copy of this message
Hi all, how does one change encoding of arrays from the "old-style" encoding that uses arrayType (encoding A): <items xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:anyType[2]" SOAP-ENC:offset="[0]"> <item> <a>10</a> <b>20</b> </item> <item> <a>10</a> <b>20</b> </item> </items> to the "flat" encoding (encoding B): <items> <a>10</a> <b>20</b> </items> <items> <a>10</a> <b>20</b> </items> The problem is that my PEAR::SOAP client uses encoding A to produce the SOAP request, but the Web Service (developed in gSOAP) does only recognize B... Also, most recent web services seem to prefer B rather than A. Ideally PEAR::SOAP should detect the right encoding from WSDL, but apparently it does not... I'll be glad if anybody could cast some light on the obscure issue of array encoding. Bye Michele

« previous php.soap (#1418) next »