axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ley, Selena (GMI/CPR Dev.)" <selena_...@ml.com>
Subject SOAP Array Questions
Date Tue, 09 Sep 2003 17:03:33 GMT
Hi.
I have the following in my xml instance document. I'm not sure why we need to include the
xsi:type attribute in the instance for Apache axis to deserialize into java object. A snippet
defining the
array type is also below.
Also, when I try to validate my schemas against the soap envelope and soap encoding schemas
from w3c website, the parser complains about the NOTATION complex type since the schema rules
indicate
NOTATION may only be an attribute. Did anyone else run into this problem?

Many thanks!
--Selena 
<ORGANIZATION:ArrayOfTaxInfo xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="ORGANIZATION:TaxInfo[]">
<ORGANIZATION:TaxInfo>
  <ORGANIZATION:TaxID_RegNo>123456789</ORGANIZATION:TaxID_RegNo> 
  <ORGANIZATION:Tax_RegCountry>US</ORGANIZATION:Tax_RegCountry> 
  <ORGANIZATION:Tax_RegType>TIN/EIN (US Only)</ORGANIZATION:Tax_RegType> 
  </ORGANIZATION:TaxInfo>
<ORGANIZATION:TaxInfo>
  <ORGANIZATION:TaxID_RegNo>123456789</ORGANIZATION:TaxID_RegNo> 
  <ORGANIZATION:Tax_RegCountry>US</ORGANIZATION:Tax_RegCountry> 
  <ORGANIZATION:Tax_RegType>QI EIN (US Only)</ORGANIZATION:Tax_RegType>
</ORGANIZATION:TaxInfo>
</ORGANIZATION:ArrayOfTaxInfo>

{Snippet from schema}
- <xs:complexType name="TaxInfoArray"> 
- <xs:complexContent> 
- <xs:restriction base="soap-enc:Array"> 
- <xs:sequence> 
<xs:element name="TaxInfo" type="TaxInfo" minOccurs="0" maxOccurs="unbounded" /> 
</xs:sequence> 
<xs:attributeGroup ref="soap-enc:arrayAttributes" /> 
</xs:restriction> 
</xs:complexContent> 
</xs:complexType> 
- <xs:complexType name="TaxInfo"> 
- <xs:sequence> 
<xs:element name="TaxID_RegNo" type="xs:String" /> 
<xs:element name="Tax_RegCountry" type="xs:String" minOccurs="0" /> 
<xs:element name="Tax_RegType" type="xs:String" /> 
</xs:sequence> 
</xs:complexType>



Mime
View raw message