complex type with single element in sequence is classified as Array

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

 



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

-- 
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