<Axis2> An element of the base extension type created using wsdl2java

I tried to use the Axis2 wsdl2java command

wsdl2java -uri somefile.wsdl -o src -ss

to create classes from wsdl / xsd files and accomplish this problem.

let's say there is a complex type defined as follows:

<xs:complexType name="MyType">
  <xs:complexContent>
    <xs:extension base="ctype:IdentifierType">
      <xs:attribute name="id" type="xs:anyURI" use="required"/>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

where anyType is defined as

<xs:complexType name="IdentifierType">
  <xs:simpleContent>
    <xs:extension base="xs:string">
      <xs:attribute name="scheme" type="xs:anyURI" use="required"/>
    </xs:extension>
  </xs:simpleContent>
</xs:complexType>

The generated Java class successfully uses getter and setter for the named id attribute of MyType. But there was neither a local field member, nor a getter and setter method to process the IdentifierType "schema".

Is there anything I don't see? Thanks in advance.

+3
source share
1 answer

, ADB , xmlbeans, , .

+2

Source: https://habr.com/ru/post/1764838/


All Articles