【发布时间】:2012-03-23 11:31:21
【问题描述】:
为什么 Micromax 和三星手机不能调用 web 服务并在安装时给出 Java 错误?我的 Web 服务在 WCF 服务中编码,我使用 j2me。我的代码是
public void startApp() {
display = Display.getDisplay(this);
try {
IMorderService_Stub service = new IMorderService_Stub();
service._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, url);
String msg = service.getCurrentShift();
System.out.println(msg);
form = new Form("MICROMAX");
str = new StringItem("SHift-Index", msg);
form.append(str);
display.setCurrent(form);
} catch(Exception e) {
System.out.println(e);
}
}
【问题讨论】:
-
micromax 和三星手机是否支持jsr 172 API?
-
其实我用的是netbeans所以我觉得都是自动添加的...
-
你想错了。目标手机必须支持您使用的 API(JSR 172 对吗?)否则您会得到“安装时出现 java 错误”
-
谢谢你,我明白了你想告诉我的......
-
但是如果我们使用另一种方法 ksoap 那么 netbeans 给出错误 cannot find class net/sf/jazzlib/GZIPInputStream 在这种情况下我们必须做什么...????
标签: wcf java-me midp samsung-mobile jsr172