Hello,
I opened an Android project to create a web service 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.SampleService;
public class Main {
public static void main(String[] args) {
SampleService sampleService = null;
Endpoint.publish("http://localhost:8090/soap/sample", sampleService);
}
}
_______________________________________________________________
I tried to clean the project, yet I receive the following error:
trouble processing "javax/xml/ws/Action.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
...
...
...
Conversion to Dalvik format failed with error 1
Regards,
Krishna.
I opened an Android project to create a web service 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.SampleService;
public class Main {
public static void main(String[] args) {
SampleService sampleService = null;
Endpoint.publish("http://localhost:8090/soap/sample", sampleService);
}
}
_______________________________________________________________
I tried to clean the project, yet I receive the following error:
trouble processing "javax/xml/ws/Action.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
...
...
...
Conversion to Dalvik format failed with error 1
Regards,
Krishna.