Enums code generation in maven-codegen-plugin
Issue
I have setup Fuse proxies previously and they work fine using the same process as below. However some of our services that we are proxying do not generate the correct wsdl.
I have noticed that some enums (although the code is generated correctly), are not correctly generated in the proxy wsdl. E.g. below loginMethod should be of type LoginMethod not string.
from proxy wsdl:
<xs:complexType name="UserCredentials"><xs:sequence>
<xs:element minOccurs="0" name="userId" type="xs:string"/>
<xs:element name="password" type="xs:string"/>
<xs:element minOccurs="0" name="serviceAccount" type="xs:string"/>
<xs:element name="loginMethod" type="xs:string"/>
<xs:element name="uuid" type="xs:string"/></xs:sequence></xs:complexType><xs:simpleType name="LoginMethod"><xs:restriction base="xs:string">
<xs:enumeration value="Impersonate"/>
<xs:enumeration value="User"/>
<xs:enumeration value="ServiceAccount"/>
</xs:restriction></xs:simpleType>
Environment
Red Hat JBoss Fuse 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
