Please take a look at our bindings samples:
http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html#WSDLtoJava-JAXWSCustomization

Is anything related to your problem--if you try to configure the binding
in a different manner (within WSDL, or separate on command line), do the
same problems occur?

If so, I would recommend sending a JIRA report on this problem
(http://issues.apache.org/jira/browse/CXF)--give us the simplest WSDL
and binding file that works like a charm on Metro but raises problems
with CXF.

Note that CXF uses the same JAXB library as Metro, so anything
JAXB-related should be the same between the two WS stacks.

Thanks,
Glen



2008-04-24 Adrian C wrote:
> 
> Has no one come across an issue similar to this - am lead to believe its a
> bug in the wsdl2java tooling as I can get this to work with wsimport!
> 
> 
> Adrian C wrote:
> > 
> > I am having some problems with jaxw binding customizations. 
> > 
> > The first problem that I am having is mixing a globalBindings definition
> > with a bindings - the global bindings seems to be ignored. For the example
> > below if I use it as is, I only get my typesafeEnumClass generated. My
> > instances of XMLGregorianCalendar are not replaced with java.util.Date.
> > However, if I remove the jaxb:bindings node then the global binding works
> > fine. Can anyone shed any light on this?
> > 
> > The other issue I have is if I have in-lined customizations and external
> > customizations I cam getting an error reporting inconsistencies - anyone
> > ever had this issue and resolved it?
> > 
> > This has all been doing my nut in - so any help would be appreciated!
> > 
> > <jaxws:bindings wsdlLocation="../Output/IdentityManagement_v1.wsdl"
> >     xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
> >     xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> >     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb";
> >     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; version="2.0">
> >     <jaxws:bindings
> >     
> > node="wsdl:definitions/wsdl:types/xsd:[EMAIL 
> > PROTECTED]'http://www.test.com/ws/de']">
> > 
> >             <jaxb:globalBindings>
> >                     <jaxb:javaType name="java.util.Date" xmlType="xsd:date"
> >                             
> > parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDate"
> >                             
> > printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDate" />
> >             </jaxb:globalBindings>
> > 
> >             <jaxb:bindings node="./xsd:[EMAIL PROTECTED]'MyEnum']">
> >                     <jaxb:typesafeEnumClass>
> >                             <jaxb:typesafeEnumMember name="ZERO" value="0" 
> > />
> >                     </jaxb:typesafeEnumClass>
> >             </jaxb:bindings>
> > 
> >     </jaxws:bindings>
> > 
> > </jaxws:bindings>
> > 
> > Thanks
> > 
> 

Reply via email to