« Return to Thread: mule 2.0/final: CXF and typeMappingRegistry

Re: mule 2.0/final: CXF and typeMappingRegistry

by Dan Diephouse-2 :: Rate this Message:

Reply to Author | View in Thread

Hi,

Could you file a JIRA for this? I'll get it fixed for the 2.0.1 release.
http://mule.mulesource.org/jira/browse/MULE

Also, I'm going to release the XFire connector for 2.0.0 final in the
next week - so you'll be able to continue using that if you want.

Dan

ejoch wrote:

> Hello,
>
> I'm moving my XFire services (formerly on Mule 2.0 RC3) to Mule 2.0 Final,
> and experiencing some problems with typeMappingRegistry.
>
> CXF appears to create minOccurs=0, nillable=true for wsdl parameters by
> default, as XFire did.
>
> Formerly it was possible to get around this as follows:
>
> <custom-connector ....
> <spring:property name="typeMappingRegistry"
> value="custom.FTypeMapRegistry"/>
>  </custom-connector>
>
>
> public class FTypeMapRegistry extends  DefaultTypeMappingRegistry{
>
> public FTypeMapRegistry(){
>
> super(null, true);
> Configuration configuration = new Configuration();
> /* here we disuade XFire from its rather annoying tendency to assume that,
> just because
> // anything in Java can be null, that we want to advertise all that
> nullity all over.
> * without this the wsdls have minOccurs=0 on e.g. strings, causes JaxWs
> to wrap JaxBEelement around
> * them */
> configuration.setDefaultMinOccurs(1);
> configuration.setDefaultNillable(false);
> super.setConfiguration(configuration);
>
>
> }
>
> However in CXF 'defaultTypeMappingRegistry' is now final, so that solution
> won't work. The CxfConnector methods are protected so I cannot see a way to
> get to the bindings and change the configuration defaults... can anyone
> suggest a solution?
>
> thanks
>
>
>  


--
Dan Diephouse
MuleSource
http://mulesource.com | http://netzooid.com 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: mule 2.0/final: CXF and typeMappingRegistry