Hi,

CXF is not generating a WSDL construct properly that incorporates 
"anySimpleType"

This is the source WSDL from which Java code is prepared:

<xsd:complexType name="ParameterType" abstract="true">
      <xsd:simpleContent>
         <xsd:extension base="xsd:anySimpleType">
            <xsd:attribute name="id" use="required" type="xsd:string" />
            <xsd:attribute name="display" use="optional" type="xsd:string" />
            <xsd:attribute name="required" use="optional" type="xsd:boolean" />
         </xsd:extension>
      </xsd:simpleContent>
   </xsd:complexType>


This is the Java code that is generated:

    @XmlValue
    @XmlSchemaType(name = "anySimpleType")
    protected Object value;


When CXF generates the WSDL this is what is created ("anyType")

<xs:complexType name="ParameterType">
  <xs:simpleContent>
    <xs:extension base="xs:anyType">
      <xs:attribute name="id" type="xs:string" use="required"/>
      <xs:attribute name="display" type="xs:string"/>
      <xs:attribute name="required" type="xs:boolean"/>
    </xs:extension>
  </xs:simpleContent>
</xs:complexType>


Can somebody please explain how to coerce the WSDL to be re-generated with 
"xs:anySimpleType" ?

Note there is a "type" param for XmlSchemaType but it only seems to support 
"DEFAULT"

Thanks,

Steve

Reply via email to