wcfjava-memidpsamsung-mobilejsr172

Web service problems in J2ME for Micromax and Samsung


Why can't Micromax and Samsung mobile call a web service and give Java error at installation time? My web service coded in WCF service and I use j2me. My code is

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);
   }
}

Solution

  • They don't support JSR172.
    Try to find another approach with a supported API.
    You may read more about JSR172 here