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 "Michael Studman (JIRA)" <ax...@ws.apache.org> on 2004/11/18 19:48:24 UTC

[jira] Created: (AXIS-1672) complexType with restriction on xsd:anyType fails to generate get/set_any methods

complexType with restriction on xsd:anyType fails to generate get/set_any methods
---------------------------------------------------------------------------------

         Key: AXIS-1672
         URL: http://nagoya.apache.org/jira/browse/AXIS-1672
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2RC1    
 Environment: Win XP SP 1
    Reporter: Michael Studman


Generating a web service using the Qualified Dublin Core 1.1 schema http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd I've found that the SimpleLiteral complex type is causing Axis to generate broken Java code. Specifically the get_any and set_any methods are not being generated for this type even though the generated class implements the org.apache.axis.encoding.AnyContentType interface that requires these methods.

On investigation it seems that because SimpleLiteral is defined as a restriction (on xsd:anyType) the enableGetters/enableSetters flags in the JavaBeanWriter instance used to generate the code are set to false and the _any property is not being output. I'm not comfortable enough with the code base to make a patch for this but superficially it seems quite easy to fix.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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