cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bgbraga <bgbr...@gmail.com>
Subject Re: cxf 2.1 bug? - new aegis 2.1 with TypeCreationOptions + defaultMinOccurs and defaultNillable
Date Wed, 04 Jun 2008 14:15:07 GMT

It was a bug:

https://issues.apache.org/jira/browse/CXF-1628


bgbraga wrote:
> 
> Hi,
> 
> I'm using cxf 2.1.
> 
> In this version the aegis is configured using the TypeCreationOptions
> class:
> http://cwiki.apache.org/CXF20DOC/introduction-to-aegis-21.html
> 
> but I couldn't make this work.
> as the documentation does not have details, I setup like this:
> 
> --------------------------
> 	<bean id="aegisBean"
> class="org.apache.cxf.aegis.databinding.AegisDatabinding">
> 		<property name="configuration">
> 			<bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
> 		        <property name="defaultMinOccurs" value="1"/>
> 		        <property name="defaultNillable" value="false"/>
> 			</bean>
> 		</property>	
> 	</bean>
> 	    
> 	<bean id="jaxws-and-aegis-service-factory"
> 	    class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"
> 	    scope="prototype"> 
> 	    <property name="dataBinding" ref="aegisBean"/>
> 	</bean>
> 	
> 	<bean id="segurancaService" class="xxxxx.SegurancaService">
> 		<constructor-arg><ref bean="fachadaSeguranca"/></constructor-arg>
 
> 	</bean>
> 	
> 
> 	<jaxws:endpoint id="endpointSegurancaService"
> implementor="#segurancaService" address="/SegurancaService">
> 		<jaxws:serviceFactory>
> 			<ref bean='jaxws-and-aegis-service-factory' />
> 		</jaxws:serviceFactory>
> 	    <jaxws:inInterceptors>
> 	      <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
> 	      <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> 	        <constructor-arg>
> 	          <map>
> 	            <entry key="action" value="UsernameToken Timestamp" />
> 	            <entry key="passwordType" value="PasswordDigest" />
> 	            <entry key="passwordCallbackClass"
> value="xxxxx.wssecurity.PWCallback" />
> 	          </map>
> 	        </constructor-arg>
> 	      </bean>
> 	      <bean class="xxxxx.wssecurity.UsernameTokenInterceptor" />
> 	    </jaxws:inInterceptors>
> 	</jaxws:endpoint>
> 
> --------------------------
> 
> My wsdl is being generated thus:
> 
> <xsd:sequence>
> <xsd:element minOccurs="0" name="idSistema" type="xsd:int"/>
> <xsd:element minOccurs="0" name="idModulo" type="xsd:int"/>
> </xsd:sequence>
> 
> It's wrong.
> minOccurs should be 1.
> 
> TypeCreationOptions had no effect.
> 
> 

-- 
View this message in context: http://www.nabble.com/cxf-2.1-bug----new-aegis-2.1-with-TypeCreationOptions-%2B-defaultMinOccurs-and-defaultNillable-tp17630145p17647802.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message