title: jax-ws Undefined port type with client and server in separate projects
body: <p>I'm working on a project that is running a webservice in localhost.
  I used jax-ws for this.
  When I had a client in the same project as the server, it worked fine.
  But now I'm trying to create a new client-project but i'm getting this error when i'm trying to run:</p>
  
  <pre><code>Undefined port type: {http://test.main/}MyWSInterface
  </code></pre>
  
  <p>I've copied the interface in both classes:</p>
  
  <pre><code>package main.test;
  </code></pre>
  
  <p>import javax.activation.DataHandler;
  import javax.jws.WebMethod;
  import javax.jws.WebService;
  import javax.jws.soap.SOAPBinding;
  import javax.jws.soap.SOAPBinding.Style;</p>
  
  <pre><code>@WebService
  @SOAPBinding(style = Style.RPC)
  public interface MyWSInterface {
  
  @WebMethod public void sendTask(String convertType, String outputFileName, DataHandler dH);
  
  }
  </code></pre>
  
  <p>I get this error on this line in my main test method:</p>
  
  <pre><code>MyWSInterface dsws = service.getPort(MyWSInterface.class);
  </code></pre>
  
  <p>Which is the 4th line in this method:</p>
  
  <pre><code>private void runTest() throws MalformedURLException {
      URL url = new URL("http://localhost:8080/MyWS?wsdl");
      QName qname = new QName("http://ws.sender.something.somecompany.com/", "MyWSInterfaceImplService");
  
      Service service = Service.create(url, qname);
      DocShifterWS dsws = service.getPort(DocShifterWS.class);
      FileDataSource ds = new FileDataSource(new File("C:\\temp\\testinput.txt\\"));
      DataHandler dh = new DataHandler(ds);
      dsws.sendTask("pdf", "something.pdf", dh);
  
  }
  </code></pre>