title: Multiple End points or Single endpoint with multiple Web Method
body: <p>I am a bit confused on the approach of creating web services.</p>
  
  <p>Problem statement:
    Should i create a service with two end points like below</p>
  
  <pre><code>&lt;jaxws:endpoint  id="stateService" implementor="com.service.StateServiceImpl" address="/stateservice" /&gt;
  &lt;jaxws:endpoint id="countryService" implementor="com.service.CountryServiceImpl" address="/countryservice" /&gt;
  </code></pre>
  
  <p>Or  create a single end point with two methods</p>
  
  <pre><code>public class Service{
  
  @WebMethod(operationName="country", action="countryservice" )
  public String countryService() {}
  
  @WebMethod(operationName="state", action="stateservice" )
  public String stateService() {}
  
  }
  </code></pre>
  
  <p>The purpose  of both of my services or operations is different.</p>
  
  <p>I am currently using Apache CXF with approach 1 i.e. separate end point.</p>
  
  <p>what is the advantage of one over another.</p>