Axis2 1.5.4 java enum support

I have a built-in axis2 service in my web application. When I try to create wsdl, it creates soemthing like

<xs:complexType name="AdminState">
            <xs:complexContent>
                <xs:extension base="xs:Enum">
                    <xs:sequence/>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>

But using this, I cannot create client code. Eclipse complains about the following error

src-resolve.4.2: Error resolving component 'xs:Enum'. It was detected that 'xs:Enum' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'file:///...xyz.wsdl'. If this is the incorrect namespace, perhaps the prefix of 'xs:Enum' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:///..xyz.wsdl'.

Does Axis2 Enumeration Support?

+3
source share
2 answers

I do not think that he

https://issues.apache.org/jira/browse/AXIS2-3967

I was also waiting for a fix


EDIT (07/18/2012): It seems that Axis2 1.7.0 now supports enumerations. Time to check it out

+4
source

Existing releases of Axis2 do not support Enum, java, or wsdl options.

, (1.7.0) Axis2 JDK5 Enum java, wsdl.

Enum Apache Axis2, , Enum Axis2 wsdl , Enum.

+2

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


All Articles