title: Best way to consume RPC/encoded webservice?
body: <p>I need to consume old-school RPC/encoded WSDL webservice for my backend. At first I tried to use Apache CXF and JAX-WS for that, but JAX-WS <code>wsimport</code> tool doesn't eat rpc/enoded WSDL.</p>
  
  <blockquote>
    <p>[ERROR] rpc/encoded wsdls are not supported in JAXWS 2.0.</p>
  </blockquote>
  
  <p>I'm also in doubt about using JAX-RPC for this job, because it's way out-dated. Axis 1.4 is 5 years old tool.</p>
  
  <p>Currently I see these three options: </p>
  
  <ol>
  <li>use JAX-WS <code>javax.xml.ws.Dispatch</code> to send and receive SOAP and parse it somehow, <a href="http://weblogs.java.net/blog/jitu/archive/2006/01/accessing_googl_1.html" rel="noreferrer">one example</a></li>
  <li>use JAX-RPC and gain bad karma for using outdated technology,</li>
  <li>do it all manually and hate myself later.</li>
  </ol>
  
  <p>Neither of these sound too good, so I would appreciate if you could give some good leads, thought what to do and how to solve it.</p>