title: web-services - Mismatch between Java model and WSDL model found, For wsdl operation
body: <pre class="lang-java prettyprint-override"><code>@WebServiceClient(name = &quot;SalesCustomerSelectService&quot;, wsdlLocation = &quot;abc.wsdl&quot;, targetNamespace = &quot;url path + api=SalesCustomerSelect&quot;) 
  public class SalesCustomerSelectService extends Service {
  public final static URL WSDL_LOCATION;
  public final static QName SERVICE = new QName(&quot;sx url + &amp;api=SalesCustomerSelect&quot;, &quot;SalesCustomerSelectService&quot;);
  public final static QName SalesCustomerSelect = new QName(&quot;sx url + &amp;api=SalesCustomerSelect&quot;, &quot;SalesCustomerSelect&quot;);
  static {
      URL url = null;
      try {
          url = new URL(&quot;url path + SalesCustomerSelect.wsdl&quot;);
      } catch (MalformedURLException e) {
          java.util.logging.Logger.getLogger(SalesCustomerSelectService.class.getName())
              .log(java.util.logging.Level.INFO, 
                   &quot;Can not initialize the default wsdl from {0}&quot;, &quot;url pathSalesCustomerSelect.wsdl&quot;);
      }
      WSDL_LOCATION = url;
  }
  @WebEndpoint(name = &quot;SalesCustomerSelect&quot;)
  public SalesCustomerSelect getSalesCustomerSelect() {
      return super.getPort(SalesCustomerSelect, SalesCustomerSelect.class);
      }
  }
  
  @WebService(targetNamespace = &quot;url path + api=SalesCustomerSelect&quot;, name = &quot;SalesCustomerSelect&quot;)
  @XmlSeeAlso({ObjectFactory.class})
  @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
  public interface SalesCustomerSelect {
  
  @WebMethod(operationName = &quot;SalesCustomerSelect&quot;, action = &quot;url path + api=SalesCustomerSelect&quot;)
  @Action(input = &quot;https://gwws.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerSelect&quot;, output = &quot;https://gwws.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerSelect&quot;, fault = {})
  @WebResult(name = &quot;SalesCustomerSelectResponseContainerList&quot;, targetNamespace = &quot;url path + api=SalesCustomerSelect&quot;, partName = &quot;parameters&quot;)
  public SalesCustomerSelectResponseContainerList salesCustomerSelect(
      @WebParam(partName = &quot;parameters&quot;, name = &quot;SalesCustomerSelectRequestContainer&quot;, targetNamespace = &quot;url path + api=SalesCustomerSelect&quot;)
      SalesCustomerSelectRequestContainer parameters) throws FaultMsg;
  }
  </code></pre>
  <p>In my main class I am changing the endpoint url as suggested in this portal as</p>
  <p><code>this.erpUrl</code> is actually an url path</p>
  <pre class="lang-java prettyprint-override"><code>final QName SERVICE_NAME = new QName(this.erpUrl+&quot;api=SalesCustomerSelect&quot;, &quot;SalesCustomerSelectService&quot;);
  final QName SERVICE_NAME1 = new QName(this.erpUrl+&quot;api=SalesCustomerSelect&quot;, &quot;SalesCustomerSelect&quot;);
  
  try{
      wsdlURL = new URL(this.erpWsdl + &quot;api=SalesCustomerSelect&quot;);
  }
  catch(Exception e){}
  
  SalesCustomerSelectService customerService = new SalesCustomerSelectService(wsdlURL, SERVICE_NAME);
  SalesCustomerSelect customerPort = customerService.getPort(SERVICE_NAME1, SalesCustomerSelect.class);
  </code></pre>
  <p>I am getting the error</p>
  <pre><code>2017-05-01 17:44:27.248  WARN 8904 --- [io-8080-exec-20] c.s.x.internal.ws.model.JavaMethodImpl   : Input Action on WSDL operation SalesCustomerSelect and @Action on its associated Web Method salesCustomerSelect did not match and will cause problems in dispatching the requests
  2017-05-01 17:44:27.248  WARN 8904 --- [io-8080-exec-20] c.s.x.internal.ws.model.JavaMethodImpl   : Mismatch between Java model and WSDL model found, For wsdl operation {https://gwws.greywolf.com/sxtest/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerSelect}SalesCustomerSelect,There is no matching wsdl fault with detail QName {https://gwws.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerSelect}FaultContainer
  </code></pre>