title: Apache Camel: Build a CXF consumer and call the service
body: <p>I am confused with different options used to create a consumer endpoint.<br/>
  Trying to consume a webservice published at <code>http://{ip}:{port}/webservices/name1</code>. Typical endpoint looks like this:</p>
  
  <pre><code>&lt;cxf:cxfEndpoint id="consume1"
                     serviceClass=""
                     address=""
                     endpointName=""
                     serviceName=""
                     wsdlURL=""
                     /&gt;
  </code></pre>
  
  <p>A typical route may look like this:</p>
  
  <pre><code>&lt;route&gt;
    &lt;from uri="cxf:bean:consume1?dataFormat=MESSAGE"/&gt;
    &lt;to uri="log:output"/&gt;
  &lt;/route&gt;
  </code></pre>
  
  <p>Here are my doubts:</p>
  
  <ol>
  <li>What will be the value of service class here? How would I know service class by looking at the wsdl?</li>
  <li>Is the address represent service url mentioned ablove? I did'nt find it same looking at few <a href="https://camel.apache.org/cxf-proxy-example.html" rel="nofollow">exmaples</a> </li>
  <li>How would I call a particular operation and pass the input from java class?</li>
  </ol>