Re: re: php5 soap deserializer error

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

 



On Tue, 13 Sep 2005 10:00:04 +1000, dtra wrote:

> <sequence>
> 	<element name="destinationAddressSet" nillable="true" 
> type="impl:ArrayOf_xsd_string"/>
> 	<element name="senderName" nillable="true" type="xsd:string"/>
> 	<element name="message" nillable="true" type="xsd:string"/>
> 	<element name="encoding" nillable="true" type="xsd:string"/>
> </sequence>
> 
> the encoding element above can be 'text', '8 bit', or 'unicode' as it's 
> values
To be able to parse lists to and from a webservice you need to define
something similar like this:

<sequence>
 <element name="destinationAddressSet" nillable="true"
 type="impl:ArrayOf_xsd_string"/>
  <element name="senderName" nillable="true" type="xsd:string"/> <element
  name="message" nillable="true" type="xsd:string"/> <element
  name="encoding" nillable="true" type="xsd:string"/>
</sequence>

<complexType name="ArrayOf_xsd_string">
  <complexContent>
    <sequence>
      <element name="ArrayOfString" type="xsd:string"
        minOccurs="0" maxOccurs="unbounded" nillable="1" />
      <restriction base="SOAP-ENC:Array">
      <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]>"
      />
</restriction>
</sequence>
</complexContent>
</complexType>

Untested.

-- 
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917

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