MIDlet OTA provisioning

How do I read the status code after MIDlet installation using the URL put against the parameter MIDlet-Install-Notify? My jad file has -
MIDlet-Install-Notify: http://127.0.0.1:8080/examples/jsp/MidletJsp/MidletJsp.jsp
in the above jsp, I have the code as :
<% out.print(request.getParameter("status")); %>
but the status does not get displayed.
Can anyone please tell me how to access the status?
Any good pointers to source of information would be welcome as well.
Thanks in anticipation.
Harsha

/***  Code to read the MIDlet-Install-Notify status codes ****/
        char[] body = new char[request.getContentLength()];
        int count = request.getReader().read(body);
        String status = new String(body,0,count);
        System.out.println(status );
[/code]
/***** Output ***/
    900 Sucess
<b> Important: </b> Looking a solution for the following problem:
I am developing an <b> OTA Provisioning platform for Java Games </b> . Herez the flow:
-> End User (Client) requests a content by entering his mobile no. via website
-> Server sends a WAP PUSH (Binary SMS) to his mobile.
-> When User opens the WAP PUSH (SMS), it will connect via GPRS to the server and start retrieving the game ( I am using Servlet to stream the JAD File)
-> Then it will retrieve JAR file (path defined in JAD file)
->  I have defined:
           MIDlet-Install-Notify: http://myserver.com/content?323
in  JAD File. So after Installation the Mobile handset connects the URL specified. I am then grabbing the status code i.e 900 or 901 ....
Problem:
<b> User Tracking: </b> I am not able to track the user for billing purpose e.g there are number of users each having unique Ids. When they download the content the  Install-Notify connects to servlet but i am not able to distinguish among users as i am not able to dynamically assign User ID to MIDlet-Install-Notify URL in  JAD File.
I am in now in real trouble. If any one knows the solution how to maintain session or URL rewriting i.e dyanmically  assign Parameters to MIDlet-Install-Notify plz share it.
Thanks in advance
Hamid
[email protected]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • OTA Provisioning - Midlet-Install-Notify session tracking / URL rewriting

    Hi all,
    While developing an OTA provisioning platform, I got stuck at the nearly end of solution(User Tracking), hopefully a small thingy for you.
    Now looking for a solution/help/advice (Thanx). The details are
    I am developing an OTA Provisioning platform for Java Games . Herez the flow:
    -> End User (Client) requests a content by entering his mobile no. via website
    -> Server sends a WAP PUSH (Binary SMS) to his mobile.
    -> When User opens the WAP PUSH (SMS), it will connect via GPRS to the server and start retrieving the game ( I am using Servlet to stream the JAD File)
    -> Then it will retrieve JAR file (path defined in JAD file)
    -> I have defined:
    MIDlet-Install-Notify: http://myserver.com/content?323
    in JAD File. So after Installation the Mobile handset connects the URL specified. I am then grabbing the status code i.e 900 or 901 ....
    Problem:
    User Tracking: I am not able to track the user for billing purpose e.g there are number of users each having unique Ids. When they download the content the Install-Notify connects to servlet but i am not able to distinguish among users as i am not able to dynamically assign User ID to MIDlet-Install-Notify URL in JAD File.
    I am in now in real trouble. If any one knows the solution how to maintain session or URL rewriting i.e dyanmically assign Parameters to MIDlet-Install-Notify plz share it.
    Thanks in advance
    cheers
    Hamid
    [email protected]

    Actually, this is not too hard: all you need is a server generating or at least processing the JAD-files. Then you can process the JAD file before it gets downloaded to the mobile device and add a parameter with the unique ID. Send this unique ID with each request of the MIDlet, and your done...
    Code obviously depends heavily on your server technolgy and application architecture (e.g. database used etc.), on the MIDlet-side you need MIDlet.getAppProperty(String propertyName) (instance method of MIDlet).
    Hope this helps,
    david

  • Close help with OTA Provisioning

    Dear colleages.
    I have a challenge to develop and deploy a E-2-E application for a big company in Argentina. I have not problems with the design and developping stages it is not quite clear for me some OTA provisioning technical considerations.
    1) The system�users have MIDP-1 and MIDP-2 Java cell phones so, I need to know if is it possible to provisione both device�types simultaneously ( I mean, usin the same server side process). If so, please, lead me in order to do it ( if you have example codes, write papers, etc, it will be better).
    2) On the other hand my question is: �Is it neccesary to do something over the devices in order to provisioning them (I mean, moreover to programming OTA)?
    Thanks in advance.
    Ernesto Blufstein.

    Dear leden,
    I've setup a new service for give a test environment to midlet developers. And i mentioned about it in a new thread. You can find details at http://forum.java.sun.com/thread.jspa?threadID=5230880
    If you like this service, please don't forget to give my duke stars here in this thread.
    Sincerely,
    Ran

  • WTK2.0 Beta 2.0 OTA provisioning

    Trying to use OTA provisioning tool that came with WTK2.0.
    I tried to install an application, go a message no midelt
    found, check url. The host is correctly setup to serve
    the jad and jar file. Thought I made some mistake in setting
    up host, tried to download several apps already released commercially by other companies on the web and got the message for every such app.
    Am I specifying url incorrectly? I tried giving url with ".jad" and without ".jad" extension. still no luck. Anybody has tried this can you please post the url that you enter exactly in test box?
    for example I tried this url
    http://www.innograte.com/mobile/midp/install/Dwindle.jad
    the html file is here
    http://www.innograte.com/mobile/midp/
    can you install this game on your OTA app in wtk2.0 or any other url?

    I got it working but..
    One thing I have noticed just any page which
    links to jad is not sufficent. You have to have
    a page where there is nothing but simple link. I have
    a html page with a table and inside one of the table
    cell there is link to jad. It seems somehow it can't
    parse the table formatting. When I created a simple html
    file with nothing but link to jad file readily recongnized it.
    Anybody has noticed this behaviour?

  • OTA provision

    Hi,
    I have been asked to look into developing a module for a course at the college I work in. The course is to be about mobile games development. I have plenty of time to pull together some resources and I was wondering what the best way of provding the games to mobile devices would be.
    I have some money available and I think it would be a good idea to provide OTA so the students can download the games they produce to their own devices. Obviously we already have our own network and we are obtaining our own server spefically for this course.
    Q1 is it feasable to provide our own OTA provision?
    Q2 what kit is involved and what sort of cost are we looking at?
    Thanks in advance.
    ps we are in England so directions within this country woud be preferred.

    OTA provisioning is not hard. As i understand it, you really only need a web server and a JAD and JAR file.
    If you don't mind exposing your app to the world, you can do it for free at http://www.midlethosting.co.uk/

  • OTA download provisioning problems

    Hi!
    I'm experiencing problems provisionig midlet OTA download.
    I got IIS 5.0 and set up the mime types for .jad and .jar.
    After exploring and selecting the link to the appropriate jad-file via WAP the download of the jad-file appears to be successfull. But after trying to download the jar file, the server's log is only reporting the http-response 406 [at the sc-status] (more info about 406: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) and no transmission is preformed.
    The file could be downloaded directly by a normal browser (non wap! e.g. in win).
    hmmm... anyone ideas?
    I tryed to download with Siemens SL45.

    Not Acceptable (406) returned by the server because your WAP browser did not state that it recieved JAD. The header for a JAD file supprisingly did not have application/vnd.sun.j2me.app-descriptor
    ALL_HTTP = HTTP_ACCEPT:unknown Media-Type, application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, application/vnd.wap.multipart.related, application/vnd.wap.multipart.mixed, application/vnd.wap.sic, application/vnd.wap.slc, application/vnd.wap.coc, image/vnd.wap.wbmp, text/x-vcalendar, text/x-vcard, text/plain, text/vnd.wap.wml, text/vnd.wap.si, text/vnd.wap.sl, text/vnd.wap.co, text/vnd.wap.wmlscript, multipart/related, multipart/mixed
    HTTP_ACCEPT_LANGUAGE:en
    HTTP_USER_AGENT:SIE-M50/14 UP.Browser/5.0.2.3.100 (GUI)
    Currently I'm using IIS 4.0 and change the mime type to text/plain and guess what... it works.
    However, if your using siemens M50 you might experiencing problem again later as the JAM request header somehow miss the comma between acceptable MIME Type (I haven't had a cure yet for this problem, not even with writing my own web server who ignore acceptable mime type)
    JAM HTTP request:
    HTTP_ACCEPT:application/java-archive application/java text/vnd.sun.j2me.app-descriptor (missing comma between Acceptable MIME type)
    HTTP_ACCEPT_LANGUAGE:us_EN
    HTTP_CONNECTION:Keep-Alive
    HTTP_HOST:202.53.225.34:80
    HTTP_USER_AGENT:M50/14 Profile/MIDP-1.0 Configuration/CLDC-1.0

  • OTA Download and HTTP Status Codes

    Hi there,
    i am planning to check the http status code of an OTA download. Even if I interupt the download process, the server still responds with status 200.
    Does anbody have an idea, how to implement this process?
    Thanx,
    Simone

    i have relatively a same question. I am developing an OTA Provisioning platform for Java Games . Herez the flow:
    -> End User (Client) requests a content by entering his mobile no. via website
    -> Server sends a WAP PUSH (Binary SMS) to his mobile.
    -> When User opens the WAP PUSH (SMS), it will connect via GPRS to the server and start retrieving the game ( I am using Servlet to stream the JAD File)
    -> Then it will retrieve JAR file (path defined in JAD file)
    -> I have defined:
    MIDlet-Install-Notify: http://myserver.com/content?323
    in JAD File. So after Installation the Mobile handset connects the URL specified. I am then grabbing the status code i.e 900 or 901 ....
    Problem:
    <b> User Tracking: </b> I am not able to track the user e.g there are number of register users each having unique Id. When they download the content the Midlet-Install-Notify connects to servlet, but i am not able to distinguish among users as i am not able to dynamically assign User ID to MIDlet-Install-Notify URL in JAD File.
    I am in now in real trouble. If any one knows the solution how to maintain session or URL rewriting i.e dyanmically assign Parameters to MIDlet-Install-Notify plz share it.
    Thanks in advance
    Regards
    Hamid
    [email protected]

  • OTA and HTTP Status Codes in Motorola T720

    Hi,
    I am trying to check OTA status code by using T720. I wrote a simple servlet to receive the status code after midlet install, and also set up the MIDlet-Install-Notify attribute to point to the servlet.
    T720 works fine in download and install, but doesn't start my midlet and I didn't get the status code.
    I truly believe I missed something which is very important in this issue which I really have no clue (servlet code? config? ...)
    Can anyone help?
    Greatly appreciated!

    I am developing an OTA Provisioning platform for Java Games . Herez the flow:
    -> End User (Client) requests a content by entering his mobile no. via website
    -> Server sends a WAP PUSH (Binary SMS) to his mobile.
    -> When User opens the WAP PUSH (SMS), it will connect via GPRS to the server and start retrieving the game ( I am using Servlet to stream the JAD File)
    -> Then it will retrieve JAR file (path defined in JAD file)
    -> I have defined:
    MIDlet-Install-Notify: http://myserver.com/content?323
    in JAD File. So after Installation the Mobile handset connects the URL specified. I am then grabbing the status code i.e 900 or 901 ....
    Problem:
    <b> User Tracking: </b> I am not able to track the user e.g there are number of register users each having unique Id. When they download the content the Midlet-Install-Notify connects to servlet, but i am not able to distinguish among users as i am not able to dynamically assign User ID to MIDlet-Install-Notify URL in JAD File.
    I am in now in real trouble. If any one knows the solution how to maintain session or URL rewriting i.e dyanmically assign Parameters to MIDlet-Install-Notify plz help/advice the solution.
    Thanks in advance
    cheers
    Hamid
    [email protected]

  • No Midlet Suites Found. Check the URL to make sure it is correct

    hi,
    i am very much in need of solution so plz respond as early as possible
    i am trying to simulate OTA provisioning through J2ME Wireless Toolkit for this i am using Apache HTTP Server Version 1.3
    i placed the .jad files and .jar files in htdocs directory and i added the below two lines to httpd.config file
    AddType text/vnd.sun.j2me.app-descriptor .jad
    AddType application/java-archive .jar
    i changed the MIDlet-Jar-URL property in .jad file to point to .jar file
    i restarted the Apache server and started the toolkit when i pointed to the .jad the error i got is "No Midlet Suites Found. Check the URL to make sure it is correct"
    can any one help me out in finding what i missed in the process of installing the midlet suite through OTA provisioning in the toolkit

    try adding these lines in the configuration file as applicable to your server
    <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/java-archive</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jad</extension>
    <mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
    </mime-mapping>
    Also, check if your JAD file contains the following information
    MIDlet-Jar-URL: http://<server_ip_or_name>:<port_if_other_than_80>/<context_root>/<name_of_your_file.jar>

  • First MIDlet help

    Hello,
    I'm brand new to J2ME (and still a beginning programmer), and I was hoping to get some assistance or some resources for my current issue.
    I have a very small, very simple MIDlet that I am trying to get to run on my Samsung SGH-A707 (also known as the Samsung Sync).
    The MIDlet runs in the emulator provided in the Wireless Toolkit 2.5.1. I've used the toolkit to package the MIDlet and created the .jar and .jad files.
    The issue is when I move it to the phone. Using Bluetooth, I''ve pushed the .jad, the .jar, .mf, all to the phone. I even tried the raw .class file just as an option. Whenever I try to run any of these, the phone gives me "Unsupported file type".
    I've read that Cingular has locked the phone's capabilities and you can't simply move java files to the phone, but that you have to use OTA provisioning. I found www.euploader.com, a site that allows you to upload your files for free, and then download them to your phone over WAP. I can surf with my phone to the site to download the file, but when I try to actually download the file, the phone tells me "Incorrect description", and I am unable to download it.
    I've been researching this problem for a few days now and I can't seem to find any references to either of these error messages.
    Am I still going about this the wrong way, trying to get my MIDlet on the phone? Did I miss a step? Does anyone have other suggestions to get the program on the phone?
    I appreciate any answers and resources anyone can present.

    Almost nothing concrete to check in descriptor, only its format.
    It should contain property pairs:
    name1: value1
    name2: value2
    etc.
    Only one idea also, check the following items:
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.1
    Check, if this ClDC and MIDP versions are supported by your target device.
    If they are not - set acceptable for device versions of libraries in build configurations of your project in WTK.
    If all is OK, Emulator does successfully upload and run the package, versions of libraries are OK too, then it's only possible to report bug to producer of your phone device.
    Regards.

  • No MIDlet Suites found.

    The below is the error message that pops up while I run the Tiny sample app from OTA provisioning.
    "No MIDlet Suites found.Check the URL to make sure it is correct."
    Although the app runs perfectly fine from the browser as well -http://myserver/myvirtualdirectory/tiny.html.
    I am running this on IIS. I am novice in this area, so just wanted to start on J2ME so started with sample app, but failed make any progress.
    Any help would be of great help to me
    Rgds
    Ram

    More info on what .jad file and the .html file i have.
    Apart from the below there is a jar file at the same location where these files are present.( in the iis virtual directory called "midlets" )
    .jad file contents
    MIDlet-1: Tiny, Tiny.png, TinyMIDlet
    MIDlet-Jar-Size: 1145
    MIDlet-Jar-URL: http://localhost/midlets/Tiny.jar
    MIDlet-Name: Tiny
    MIDlet-Vendor: Unknown
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.1
    .html file contents
    <html>
    <body>
    Test
    </body>
    <html>
    rgds,
    Ram

  • Problems signing a Midlet

    I have gone purchased a certificate from Verisign and have imported it into my Keystore, used the NetBeans IDE to sign my midlet suite with it, but when I attempt to install the midlet suite with the OTA provisioning tool, I get this message: "... the public key used for authorization has expired."
    Not suprisingly when we attempt to install it on an Ericson handset, the download fails, and on a WIndows mobile device, we get a message "...unable to verify digital signature."
    Any idea what is wrong?
    Thanks

    hi,
    I am also devloping an Application in which i was supposed to use ASP in the server side.I have created an selef sgned certificate.I don't know how to import the certificate to WTK23 and also to real device.
    If you found solution let me know the way to do that.
    Thanks in advance
    lakshman

  • Signed Midlets

    I have gone purchased a certificate from Verisign and have imported it into my Keystore, used the NetBeans IDE to sign my midlet suite with it, but when I attempt to install the midlet suite with the OTA provisioning tool, I get this message: "... the public key used for authorization has expired."
    Not suprisingly when we attempt to install it on an Ericson handset, the download fails, and on a WIndows mobile device, we get a message "...unable to verify digital signature."
    Any idea what is wrong?
    Thanks

    Hi,
    3 separate midlets.
    Jack

  • OTA Error code 37 ( jar downloading problem)

    Hi all,
    I am new to j2me and recently creates an apps ..my apps works fine on OTA Provisioning if default url is used for downloading jad/jar....but when i used tomcat server it gives an error while downloading jar file OTA error code 37...i have also configure the mime type in tomcat's web.xml file...and try differnt ways....but still problem not resolved....please anybody help me to remove this error...Thanx in advance
    -JPF

    Hi,
    did you add these 2 MIME types?
    application/java-archive - jar
    text/vnd.sun.j2me.app-descriptor - jad

  • J2ME client server

    Hi i have a client J2ME application written verifyed and running. I am a little new to the whole programming thing but I was wondering if anybody knew if it was possible to use JSP or a servlet to distribute an application like a quiz on my server, package this into a midlet and then send it to a client and then return the results in either sms or an e-mail format using a pop3 connection
    I think it is possible to do this in WML format. I know this would be more practical as the results would just be looked up in the browser of the deivce and these would link to the database. However I am having trouble setting up the server. I am not quite sure how to go about it.
    I have downloaded tomcat 4.1 and i have just run it on the default localhost port number. But I am not sure where to go from here. I tried to write a servlet to deal witht the application request but I am not sure how to setup a database or the files I want downloaded for OTA provisioning. I have the WTK2.0 beta with OTA. I tried uploading the final jar and jad files to my public web space but I guess since there are not supportive mime settings this will not work.
    Any advice or help would be greatly appreciated for a dummy programmer.
    thanks,
    Prashant

    I have managed to configure tomcat properly so far and am interested in a server that can discover the IP addresss of a device using a midlet.

Maybe you are looking for