How to change encoding of arrays?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux