You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by bgbraga <bg...@gmail.com> on 2008/06/03 20:48:08 UTC
cxf 2.1 bug? - new aegis 2.1 with TypeCreationOptions +
defaultMinOccurs and defaultNillable
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-tp17630145p17630145.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: cxf 2.1 bug? - new aegis 2.1 with TypeCreationOptions + defaultMinOccurs and defaultNillable
Posted by Benson Margulies <bi...@gmail.com>.
I (mis) read your original message to have mentioned a lack of
documentation.
On Thu, Jun 5, 2008 at 9:38 AM, bgbraga <bg...@gmail.com> wrote:
>
> ??
>
> I put this link
> (http://cwiki.apache.org/CXF20DOC/introduction-to-aegis-21.html) in my
> first
> message.
>
> Using this link I saw that it should use the TypeCreationOptions instead of
> TypeMappingRegistry.
>
> But the TypeCreationOptions not worked... I didn't understand the question.
>
>
>
> Benson Margulies-4 wrote:
> >
> > Did you see
> > http://cwiki.apache.org/CXF20DOC/introduction-to-aegis-21.htmlwhen
> > you got into this at first?
> >
> >
> >
> > On Wed, Jun 4, 2008 at 10:15 AM, bgbraga <bg...@gmail.com> wrote:
> >
> >>
> >> 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.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/cxf-2.1-bug----new-aegis-2.1-with-TypeCreationOptions-%2B-defaultMinOccurs-and-defaultNillable-tp17630145p17670002.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>
Re: cxf 2.1 bug? - new aegis 2.1 with TypeCreationOptions +
defaultMinOccurs and defaultNillable
Posted by bgbraga <bg...@gmail.com>.
??
I put this link
(http://cwiki.apache.org/CXF20DOC/introduction-to-aegis-21.html) in my first
message.
Using this link I saw that it should use the TypeCreationOptions instead of
TypeMappingRegistry.
But the TypeCreationOptions not worked... I didn't understand the question.
Benson Margulies-4 wrote:
>
> Did you see
> http://cwiki.apache.org/CXF20DOC/introduction-to-aegis-21.htmlwhen
> you got into this at first?
>
>
>
> On Wed, Jun 4, 2008 at 10:15 AM, bgbraga <bg...@gmail.com> wrote:
>
>>
>> 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.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/cxf-2.1-bug----new-aegis-2.1-with-TypeCreationOptions-%2B-defaultMinOccurs-and-defaultNillable-tp17630145p17670002.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: cxf 2.1 bug? - new aegis 2.1 with TypeCreationOptions + defaultMinOccurs and defaultNillable
Posted by Benson Margulies <bi...@gmail.com>.
Did you see http://cwiki.apache.org/CXF20DOC/introduction-to-aegis-21.htmlwhen
you got into this at first?
On Wed, Jun 4, 2008 at 10:15 AM, bgbraga <bg...@gmail.com> wrote:
>
> 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.
>
>
Re: cxf 2.1 bug? - new aegis 2.1 with TypeCreationOptions +
defaultMinOccurs and defaultNillable
Posted by bgbraga <bg...@gmail.com>.
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.