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 ax...@ws.apache.org on 2004/07/29 23:47:40 UTC
[jira] Closed: (AXIS-1348) Handling of extensions
Message:
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:
http://issues.apache.org/jira/browse/AXIS-1348
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1348
Summary: Handling of extensions
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: Axis
Components:
WSDL processing
Versions:
1.2 Beta
Assignee:
Reporter: Dominic Battre
Created: Wed, 5 May 2004 3:51 PM
Updated: Thu, 29 Jul 2004 2:46 PM
Description:
I think axis does not handle extensions correctly.
Consider this part of ws-addressing:
<xs:complexType name="AttributedURI">
<xs:simpleContent>
<xs:extension base="xs:anyURI">
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
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="http://schemas.xmlsoap.org/ws/2003/03/addressing"/>
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.)
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira