You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Leo Cheung (JIRA)" <ax...@ws.apache.org> on 2005/08/25 23:30:10 UTC

[jira] Updated: (AXIS-2196) Server side does not recognize dervied classes (xsd extensions)

     [ http://issues.apache.org/jira/browse/AXIS-2196?page=all ]

Leo Cheung updated AXIS-2196:
-----------------------------

    Attachment: fail.JPG

Failed transaction (BBOX - dervied class cannot be sent)

> Server side does not recognize dervied classes (xsd extensions)
> ---------------------------------------------------------------
>
>          Key: AXIS-2196
>          URL: http://issues.apache.org/jira/browse/AXIS-2196
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2.1
>  Environment: Oracle OC4J, Axis 1.2 Final / Nightly Build (8/25/05), Eclipse 3.1 Soap Message Console plugin
>     Reporter: Leo Cheung
>  Attachments: SlopeWS.wsdl, fail.JPG, success.JPG
>
> I imported a GIS "standard" schema into my wsdl and then used wsdl2Java to generate the classes.  The GIS schemas contain abstract /dervied complexTypes which Axis generated the source without problem.  However, after deploying the Web Service, the server will not accept the "derved" classes complexType as a valid XML document.  
> For example, I have the following "FilterType" complexType(#1).   "SpatialOps" here is an abstract type (#2) and BBoxType extends from SpatialOpsType (#3).  When I send the xml message (#4) to the server it is okay, but when I send the "derived" complexType it breaks (#5).  Hope you can help.  Thanks.
> #1
> <complexType name="FilterType">
>                 <sequence>
>                     <element name="spatialOps" minOccurs="0" maxOccurs="1" type="tns2:SpatialOpsType"/>
>                 </sequence>
> </complexType>
> #2
> <complexType abstract="true" name="SpatialOpsType">
>   <sequence/>
> </complexType>
> #3
>  <complexType name="BBOXType">
>                 <complexContent>
>                     <extension base="tns2:SpatialOpsType">
>                         <sequence>
>                             <element name="PropertyName" nillable="true" type="tns2:PropertyNameType"/>
>                      </sequence>
>                 </extension>
>              </complexContent>
> </complexType>
> #4
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://www.opengis.net/ogc" xmlns:m="http://www.opengis.net/wfs" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>     <SOAP-ENV:Body>
>         <GetFeatureWFS xmlns="http://www.opengis.net/wfs">
>             <GetFeature xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="m:QueryType[2]">
>                 <item xsi:type="m:QueryType">
>                     <!-- Array[]   nillable-->
>                     <PropertyName xsi:type="tns2:ExpressionType"/>
>                     <!-- optional   nillable-->
>                     <Filter xsi:type="tns2:FilterType">
>                         <!-- optional -->
>                         <spatialOps xsi:type="tns2:SpatialOpsType"/>                      
>                     </Filter>
>                 </item>
>             </GetFeature>
>         </GetFeatureWFS>
>     </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> #5
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://www.opengis.net/ogc" xmlns:m="http://www.opengis.net/wfs" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>     <SOAP-ENV:Body>
>         <GetFeatureWFS xmlns="http://www.opengis.net/wfs">
>             <GetFeature xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="m:QueryType[2]">
>                 <item xsi:type="m:QueryType">
>                     <!-- Array[]   nillable-->
>                     <PropertyName xsi:type="tns2:ExpressionType"/>
>                     <!-- optional   nillable-->
>                     <Filter xsi:type="tns2:FilterType">
>                         <!-- optional -->
>                 <!--        <spatialOps xsi:type="tns2:SpatialOpsType"/>  -->
>                                <!-- DO NOT ACCEPT BBOX even though it is dervied from SpatialOpsType -->
> 						<Bbox>
> 								
> 						</Bbox>		
>                     </Filter>
>                 </item>
>             </GetFeature>
>         </GetFeatureWFS>
>     </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira