title: webservice...cannot be resolved as a type
body: <p>Im trying to implement a web service for an android app (with Phonegap)</p>
  
  <p>I have an Interface:</p>
  
  <pre><code>package webservice;
  import javax.jws.WebMethod;
  import javax.jws.WebService;
  
  @WebService
  
  public interface HelloService {
  @WebMethod(operationName = "hello")
  public String hello(String name);
  </code></pre>
  
  <p>}</p>
  
  <p>and the implementation of it:</p>
  
  <pre><code>package webservice;
  import javax.jws.*;
  import android.webkit.WebView;
  import com.phonegap.DroidGap;
  
  @WebService
  public class HelloServiceImpl implements HelloService {
  
      //Constructor for a invocation with javascript
  public LottozahlenServiceImpl(DroidGap gap, WebView view){
  
  }
  
  public String hello(String name) {
      System.out.println("Hello "+name);
       return "Hello "+name +" Welcome to Web Services!";
  }
  </code></pre>
  
  <p>}
  The problem is, all imports and the annotation "cannot be resolved as a type". I downloaded <a href="http://code.google.com/p/ksoap2-android/wiki/HowToUse?tm=2" rel="nofollow">ksoap2-android</a> and added the JAR to the build path. I also restarted Eclipse, cleaned the project, reloaded the target. I cant solve this. Please help.</p>