Hello,
That’s the error I get, followed by the button which says “Edit source lookup path”. I’m trying to debug my project as an android application.
In my program I’ve tried to create a Web Service. But I did not open my project as a Web Service Project, instead as an Android Project, so that I can run it on the Android Emulator.
The program is as below:
_________________________________________________
package com.hascode.tutorial.soap;
import android.app.Activity;
import android.os.Bundle;
import javax.jws.WebMethod;
import javax.jws.WebService;
public class SampleServiceActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
@WebService
public class SampleService extends SampleServiceActivity{
@WebMethod(operationName = “getInfo”)
public String getInformation() {
return “hasCode.com”;
}
public String doubleString(String inString) {
return inString + inString;
}
}
}
__________________________________________________ ______________
__________________________________________________ ______________
package com.hascode.tutorial.soap;
import javax.xml.ws.Endpoint;
import com.hascode.tutorial.soap.SampleServiceActivity.Sa mpleService;
public class Main {
public static void main(String[] args) {
SampleService sampleService = null;
Endpoint.publish(“http://localhost:8090/soap/sample”, sampleService);
}
}
__________________________________________________ ______________
Regards,
Krishna.