title: java: Rpc/encoded wsdls are not supported in JAXWS 2.0
body: <p>I'm using CXF 2.1 to generate java code from a wsdl, but I'm getting the following error:</p>
  
  <pre><code>WSDLToJava Error: Rpc/encoded wsdls are not supported in JAXWS 2.0
  
  org.apache.cxf.tools.common.ToolException: Rpc/encoded wsdls are not supported in JAXWS 2.0
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.checkSupported(JAXWSDefinitionBuilder.java:141)
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:87)
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:61)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:127)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
      at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
      at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)
  </code></pre>
  
  <p>How do I fix this error, can I use a previous version of CXF or anything else to fix it?</p>