cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: How to declare an attribute required and non-primitive?
Date Wed, 21 Sep 2011 19:18:08 GMT
On Tuesday, September 20, 2011 10:06:27 PM MosheElisha wrote:
> When I use the org.apache.cxf.tools.wsdlto.WSDLToJava tool on my WSDL the
> client is generated with "int interval" and I would like it to be generated
> with "Integer interval"

Try creating a jaxb binding file that looks something like:

<jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
               jaxb:version="2.0">
      <jaxb:globalBindings>
        <jaxb:javaType name="java.lang.Integer"
                       xmlType="xsd:int" />
      </jaxb:globalBindings>
</jaxb:bindings>

and pass that to wsdl2java with the -b flag.



-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Mime
View raw message