axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Closed: (AXIS-1348) Handling of extensions
Date Thu, 29 Jul 2004 21:47:40 GMT

   The following issue has been closed.

   Resolver: Jarek Gawor
       Date: Thu, 29 Jul 2004 2:46 PM

This should be fixed now. Please try the latest code.
View the issue:

Here is an overview of the issue:
        Key: AXIS-1348
    Summary: Handling of extensions
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis
             WSDL processing
             1.2 Beta

   Reporter: Dominic Battre

    Created: Wed, 5 May 2004 3:51 PM
    Updated: Thu, 29 Jul 2004 2:46 PM

I think axis does not handle extensions correctly.

Consider this part of ws-addressing:

<xs:complexType name="AttributedURI">
    <xs:extension base="xs:anyURI">
      <xs:anyAttribute namespace="##other" processContents="lax"/>

Axis/wsdl2java does not create a new class for AttributedURI but simply uses the class URI
of xs:anyURI instead. This has two consequences:

1) additional attributes/elements cannot be accessed.

2) wsdl2java creates a typeMapping 
  <typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle=""
qname="ns66:AttributedURI" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
type="java:org.apache.axis.types.URI" xmlns:ns66=""/>
  this typeMapping overwrites the standard typeMapping (xs:anyURI => org.apache.axis.types.URI).
In a consequence java2wsdl produces wrong outputs: you cannot use attributes of type anyURI
(java2wsdl does not consider org.apache.axis.types.URI a simple type any more because its
namespace has changed to the namespace of ws-addressing. Types.isSimpleType considers org.apache.axis.types.URI
as a non-simple type.)

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message