Services using Annotations are not generating correctly the WSDL when using a
Configuration bean for minOCcurs=1
----------------------------------------------------------------------------------------------------------------
Key: XFIRE-923
URL: http://jira.codehaus.org/browse/XFIRE-923
Project: XFire
Issue Type: Bug
Components: Aegis Module
Affects Versions: 1.2.4
Environment: Window
Reporter: Marcelo Krebber
Assigned To: Dan Diephouse
There is a documented fix for configuring xfire to avoid the minOcccurs=0 in
the generated WSDL. this is being ignored when using annotations to generate
the service. xfir.xml updated as follows:
<!-- changed -->
<import resource="classpath:org/codehaus/xfire/spring/customEditors.xml"/>
<!-- addded -->
<bean id="new.aegisTypeConfiguration"
class="org.codehaus.xfire.aegis.type.Configuration">
<property name="defaultExtensibleElements" value="false"/>
<property name="defaultExtensibleAttributes" value="false"/>
<property name="defaultNillable" value="false"/>
<property name="defaultMinOccurs" value="1"/>
</bean>
<bean id="xfire.typeMappingRegistry"
class="org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry"
init-method="createDefaultMappings" singleton="true">
<property name="configuration" ref="new.aegisTypeConfiguration"/>
</bean>
when using JSR181 as the service factory, the configuration is not being
delegated correctly to the factory, and default configuration is used, that is
minoccurs is 0!! this is an important isue when generating clients from a wsdl
in order to avoid cumbersome jaxb codings.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email