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
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to