axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Ruby" <ru...@us.ibm.com>
Subject Re: array test
Date Tue, 04 Dec 2001 13:12:23 GMT
Doug Davis wrote:
>
> On your (1) you say throw an error if we don't
> understand the xsi:type -  just wanted to be clear - in my
> case I'm seeing the error because we aren't even looking
> at the xsi:type.  We don't follow the href - if we did then we'd
 >see a well-known xsi:type and the error would be avoided.

I guess I'm confused.  Below are the "bad" and "good" wire dumps.  The only
differences (other than ordering of elements) are the presence or absence
of trailing slashes in the definitions of ns1, ns2, ns3, and ns4.

So, we today we report that it is an array of things that we don't
understand.  If we followed the href, we again would say that it was an
array of things we don't understand.

Bad:

   <?xml version="1.0" encoding="UTF-8"?>
   <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
     <doitResponse>
      <doitResult href="#id0"/>
     </doitResponse>
     <multiRef id="id0" SOAP-ENC:root="0" xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="ns1:foo[3]"
xmlns:SOAP-ENC
   ="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://test.com/">
      <item href="#id1"/>
      <item href="#id2"/>
      <item href="#id3"/>
     </multiRef>
     <multiRef id="id3" SOAP-ENC:root="0" xsi:type="ns2:foo" xmlns:ns2="http://test.com/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
      <i xsi:type="xsd:int">3</i>
     </multiRef>
     <multiRef id="id2" SOAP-ENC:root="0" xsi:type="ns3:foo" xmlns:ns3="http://test.com/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
      <i xsi:type="xsd:int">2</i>
     </multiRef>
     <multiRef id="id1" SOAP-ENC:root="0" xsi:type="ns4:foo" xmlns:ns4="http://test.com/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
      <i xsi:type="xsd:int">1</i>
     </multiRef>
    </SOAP-ENV:Body>
   </SOAP-ENV:Envelope>

Good:

   <?xml version="1.0" encoding="UTF-8"?>
   <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
     <doitResponse>
      <doitResult href="#id0"/>
     </doitResponse>
     <multiRef id="id0" SOAP-ENC:root="0" xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="ns1:foo[3]"
xmlns:SOAP-ENC
   ="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://test.com">
      <item href="#id1"/>
      <item href="#id2"/>
      <item href="#id3"/>
     </multiRef>
     <multiRef id="id1" SOAP-ENC:root="0" xsi:type="ns2:foo" xmlns:ns2="http://test.com"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
      <i xsi:type="xsd:int">1</i>
     </multiRef>
     <multiRef id="id3" SOAP-ENC:root="0" xsi:type="ns3:foo" xmlns:ns3="http://test.com"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
      <i xsi:type="xsd:int">3</i>
     </multiRef>
     <multiRef id="id2" SOAP-ENC:root="0" xsi:type="ns4:foo" xmlns:ns4="http://test.com"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
      <i xsi:type="xsd:int">2</i>
     </multiRef>
    </SOAP-ENV:Body>
   </SOAP-ENV:Envelope>

- Sam Ruby


Mime
View raw message