ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> soapbuilders
soapbuilders
Re: [soapbuilders] itemType value for SOAP 1.2 array of array
by Jacek Kopecky other posts by this author
Aug 30 2002 10:33AM messages near this date
[soapbuilders] itemType value for SOAP 1.2 array of array | Re: [soapbuilders] itemType value for SOAP 1.2 array of array
Robert,
 the value of the enc:itemType AII is a type name that will be
assigned to the array items should they not specify their type
names using xsi:type. It is assumed (though not required) that 
the type names will be the names of types (simple or complex) 
defined using XML Schema. Therefore I don't believe you can have 
square brackets in there because (IIRC) they are not allowed in 
an XML Schema type name.
 One can define a two-dimensional array in XML Schema by
restricting the enc:Array type so that the arraySize attribute
has exactly two parts (as opposed to any number). And IMHO this
should be the only way two-or-more-dimensional SOAP-Encoding
arrays are defined in XML Schema.
 Then you can give this type a name, anything like
"2dArrayOfFoo", "ArrayOfFoo", "Bar" or other. The name should not 
play any role in distinguishing arrays from other types.
 It is my opinion that using XML Schema to describe data in the
SOAP Data Model is flawed (XML Schema's data model being
different; one cannot easily combine data models), but apparently
enough "common understanding of hacks" exists for this to be
viable.
 Oh, I have to add (just in case it's not clear) that a
two-dimensional array is a different beast from an array of 
arrays. Java doesn't have multidimensional arrays, C/C++ does.
 Best regards,

                   Jacek Kopecky

                   Senior Architect, Systinet Corporation
                   http://www.systinet.com/



On Wed, 28 Aug 2002, Robert van Engelen wrote:

 >  
 >  Hi,
 >  
 >  What is the itemType attribute information item value for a SOAP 1.2 array of
 >  arrays? I can't find a definition of this anywhere in the specs and there are
 >  no examples to go on.
 >  
 >  Suppose we have an array of array of xsd:int. Is the following representation
 >  correct?
 >  
 >  <aOfa SOAP-ENC:itemType="xsd:int[]" SOAP-ENC:arraySize="2">
 >   <item SOAP-ENC:itemType="xsd:int" SOAP-ENC:arraySize="0"></item>
 >   <item SOAP-ENC:itemType="xsd:int" SOAP-ENC:arraySize="1"><item>1</item></item>
 >  </aOfa>
 >  
 >  That is, can we use the SOAP 1.1 array types such as "xsd:int[]"? If not, what
 >  is the type? Is it an application-defined XML schema type such as "s:array"?
 >  
 >  - Robert van Engelen
 >  


------------------------ Yahoo! Groups Sponsor ---------------------~--> 
4 DVDs Free +s&p Join Now
http://us.click.yahoo.com/pt6YBB/NXiEAA/MVfIAA/W6uqlB/TM
---------------------------------------------------------------------~-> 

-----------------------------------------------------------------
This group is a forum for builders of SOAP implementations to discuss implementation and int
eroperability issues.  Please stay on-topic.

To unsubscribe from this group, send an email to:
soapbuilders-unsubscribe@[...].com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
Thread:
Robert van Engelen
Jacek Kopecky
Robert van Engelen
Jacek Kopecky
Bob Cunnings

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved