Sending http data via GPRS Nokia 6600

Hello!
We are trying to make a multiplayer game over GPRS. The midlet-server application works fine when we were using the emulator. however, when we test it on the real phone, Nokia 6600, it seems that the data being sent by the MIDlet is not received by the server. We have no idea why it's not working and we hope that maybe some of you are familiar with this and might have some input. Could the problem be caused by our service provider?
I found this post in the forum wherein they recommended the use of GPRS-internet instead of GPRS-wap since wap could probably be blocking the data due to the content-type.
Is there a way to set the Nokia 6600 to use GPRS-internet instead of GPRS-wap?
We hope someone could reply as soon as possible.
Thanks! =)

Solution I found:
Normally when you browser through your mobile ,you connect through Access Point or Access Point Name(APN).these normally connect to WAP sites and you browse through them.
When you want to access your own server (or servlets) from the j2me MIDlet suite you have to have the Access Point Setting to internet access.This you have to get the settings from the service provider of the mobile connection you are using. I am in India and using Hutch so I activated HUTCH_WWW ie "HUTCH ACCESS" Service.
If this seeting is done your Httpconnection will work fine.
Hope people who face similar problem will find this helpful.
If problem persists then please contact me at [email protected]
Vishwajeet Wadhwa

Similar Messages

  • Send & receive data over GPRS

    Hi All !!!
    I am developing a program to receive and send data over GPRS. A remote device is sending data at a particular port (6600) of my server. I am able to read that through ServerSocket. However I am not being able to send any data to that device.
    Any help?

    I am using the code:
    // Constructor
    public ServerSocketReader(Socket socket) {
    super("MultiSocketThread");
    this.clientSocket = socket;
    this.setDaemon(true);
    public void run() {
    try {
    OutputStream out = clientSocket.getOutputStream();
    InputStreamReader in = new InputStreamReader(clientSocket.getInputStream ());
    //BufferedWriter bw = new BufferedWriter(new FileWriter(_filepath, true));
    java.util.Date date = new java.util.Date();
    SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd-MMM-yy HH:mm:ss");
    GprsProtocol protocol = new GprsProtocol();
    int charCount = 0;
    char[] cBuffer = new char[1000];
    byte[] bBuffer;
    String fromClient = "", toClient = "START";
    int ii = 0;
    while ((ii = in.read()) != -1) {
    fromClient = fromClient + (char)ii;
    if (fromClient.endsWith("2Y")) { //according to protocol
    toClient = protocol.processInput(fromClient); //Protocol
    bBuffer = toClient.getBytes();
    for (int k=0; k<bBuffer.length; k++) {
    out.write ((char)bBuffer[k]);
    out.flush();
    fromClient = "";
    out.close ();
    in.close ();
    clientSocket.close ();
    //bw.close();
    } catch (IOException ioe) {
    //out.println("Error::" + e);
    System.out.println("Error in writing file : ");
    ioe.printStackTrace();
    } catch (Exception e) {
    System.out.println("Error in ServerSocketReader : ");
    e.printStackTrace();
    finally {
    //this.destroy();
    I am geeting the error at line :-
    while ((ii = in.read()) != -1) {
    the error is :-
    java.net.SocketException: A connection with a remote socket was reset by that socket.: A connection with a remote socket was rese
    by that socket.
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:104)
    at java.net.SocketInputStream.read(SocketInputStream.java:82)
    at java.io.InputStreamReader.fill(InputStreamReader.java(Compiled Code))
    at java.io.InputStreamReader.read(InputStreamReader.java:256)
    at java.io.InputStreamReader.read(InputStreamReader.java:229)
    at ServerSocketReader.run(ServerSocketReader.java(Compiled Code))

  • Any way to send unreliable data via rtmfp NetConnection

    Hi,
         I'm now using NetStream with dataReliable=false to send unreliable data in my fps game.
         But some user's flash player set  RTMFPP2PDisable to 1.
         So the only choice is to use NetConnection to sendData.
         But I have not found any option to set NetConnection unreliable.
       If the data sent by NetConnection is ordered and reliable, what is the difference between using udp based rtmfp and using tcp based protocol?

    updated.

  • Send complex data via web service : discards parts of complex object sent

    Hi,
       I have to send an object to the server via a web service. The object A (say) that is being sent has a lot of properties. Now A has an array collection of objects of type B which in turn has an array collection of type C and so on..
    The problem is some of the data is not a part of the xml data sent out.
    I have included the snapshots of the data given to the web service and data sent out as seen in the network monitor below.
    Object sent to the web service
    xml data sent out as seen
    in the request body in the Network monitor
    The object in red rectangle above is of type "Slide" which has an object "caption" of type Caption and other simple properties like slideId (int), slideNumber(int) and storyBoardId(int).
    The object in the red rectangle is the xml data of "Slide" corresponding to the object in the red rectangle in the image to the left.
    Notice that the entire object "caption" has been dropped while the simple properties have been represented.
    I am stuck and cant find a solution to this issue or a work around
    any pointers would be really helpful.
    thanks in advance

    Posting more images .. have simplified the object a lot but still have the same issue.
    1. The request object description as given in the asmx [seen in the browser]
    2. The request object's description as given in the wsdl [seen in browser]
    3. The object that is being sent to the web service -- as seen in the debugger of Flash builder
    4. The object data in xml being sent out of Flex client -- as seen in network monitor of Flash Builder
    NOTE : The object data as seen in the network monitor doesnt have the caption" part at all! whereas the debugger shows the caption.
    5. The object recieved at the web method  of the web service -- as seen in the debugger of visual studio running the service
    If anyone has any work around for this pl let me know.

  • Sending serialization data via intranet.

    This is what I have: SMS Messaging server, there running my own program handling the SMS messages. The message handling routines will be handled with programminglanguage I have designed. It will compile the statements into java Object structure. The compiling result will be serialized and saved into the server.
    Now... I would like to have following: That when the some of the programs need to be updated at five o'clock in the morning, I would simple start my computer and log into corporations intranet (they're using lotus notes), compile the needed changes in my computer, and send them to the other end of the line, and voila' that's it.
    How...? I was thinking that I would create an applet, with compiler built in, that is stored in some lotus notes database. Then I go to some specific page, and will be able to see the programs that are handling the messages, and edit them, compile them, and when ready send them to my java program running at the server. The programs can be plain text in Notes database, and I can compile them in applet, but how I'm going to send the serialization data to the java program???
    Hope you understood my problem (I tried to be specific) and know how to help me soon?
    Thanks, Mikael Kuisma

    You can do this through an HTTP stream no problem. That is the way I get around a lot of issues with Applet security constraints. The class you want to look at in this instance is called HttpURLConnection. This class uses the standard Http protocol to transfer data. Basically it would work like this:
    1) In your "client" code (which would really be what you were previously calling the server code) open an HttpURLConnection to a serlvet on a web server.
    2) In this servlet create/populate the object you need to serialize "across the wire". Create an ObjectOutputStream from the HttpServletResponse in the servlet to be sent back to the clientObjectOutputStream oos = new ObjectOutputStream( response.getOutputStream()); Then simply write your object out to this stream.
    3) Back in the "client", prepare to read the object from the returned stream:ObjectInputStream ois = new ObjectInputStream( servlet.getInputStream()); where servlet is the instance of the HttpURLConnection calss. Then simply read the object from this stream.
    As for accessing a database from the internet, it depends on what you mean by "from internet"? Directly from the client through Http? Not doable in terms of getting JDBC to operate over Http protocol. However, if you absolutely have to set it up this way, you can set up something similiar to what is described above where a servlet acts sort of like a proxy for you across the inter(/intra)net. Just download the ResultSet to some kind of serializable object and send that object through an ObjectOutputStream over an HttpURLConnection. Of course the web server would either have to be inside the firewall and accessible from outside on standard Http port, or in a DMZ with access to resources inside the firewall. If you use M$ IIS, both are potential security hazards; in other instances putting the web server inside the firewall and opening port 80 and using port-forwarding at the firewall is the preferred method.
    Does the database access need to go through the firewall (i.e., are the RDBMS server and the client on opposite side of firewall)? Will the standard port for this particular database be opened in or tunnelled/forwarded through the firewall? If there is any kind of access to the database opened or accessible from outside the firewall, then JDBC will (in most cases) be able to access the database.
    The "in most cases" above basically excludes instances where the connection is express forbidden by the local java SecurityManager (namely Applets).
    Hope this helps

  • Send form data via email after posting to MySQL database

    I have created a form in DreamweaverMX 2004 and then tied it to mySQL database so that on submit the data posts to the database.
    This works fine. It also goes to a "success" page just fine. I then added in some php code to also email a few of the fields from the form to a specific email address. This functions correctly using this code below (the email does go - the "from" email address has my login for MySQL database) EXCEPT that the data from the fields does not come through. The field labels are there as indicated below and the email is formatted correctly, but the data doesn't come through.
    mail( $to = "[email protected]", $subject = "Someone has submitted an application",
    $content= "Essay 1: ".$Essay1."\r\n"
    ."Essay 2: ".$Essay2."\r\n"
    ."Essay 3: ".$Essay3."\r\n"
    ."Essay 4: ".$Essay4."\r\n"
    ."Essay 5: ".$Essay5."\r\n");
    What am I doing wrong?
    That's problem #1 - then problem #2 is that I actually also need to send the ID code in this email for the specific record which has been created in my database so the end recipient can associate the email with that specific ID later for other purposes. So even if I figure out problem #1, I'm not sure that I can use this code for problem #2 because the field isn't on the html form, but actually created by the database upon submission.
    Any suggestions would be helpful!
    Thanks

    Moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

  • Send text via GPRS to MIDlet

    I want to send message text via GPRS to my MIDlet
    But I wonder how to 'push' it...
    I've got the IP address of the MIDlet, but i dont think simply push the message to the IP address will do...coz IP is 'shared' by every application in the mobile phone right?
    I wonder should i have an indicator to verify that message is for my MIDlet.
    Or I should write a class to be a 'listener' in JAVA to read the data if any?
    Any advice will be very very much appreciated!

    U can do one think Write Servlet or JSP Application on server.And MIDLEt open one HTTP Connection which access the servlet of the server Then that servlet read the file from anywhere and write the data on outputstream of the httpconnection object

  • SAP Business connector sending XML data

    Dear all,
    I am using an RFC to transfer the data from SAP R/3 to web server. I have to send the data to web server URl via SAP Business Connector in the below format.
    I am getting data in RFC sttructure, Now I need to change the above data into XMl and hence need to compress.
    The requirement is as below:
    The XML message is signed, encoded in base64.
    Signed and encoded XML message is compressed in GZIP format.
    Can u please share your ideas to achieve this.
    Thanks and regards,

    Dear Michal and Prateek,
    Thank you very much for your ideas.
    This is my flow:
    clear XML data -> SIgning with detached signature  -> Base 64 encode -> send the data via HTTP port.
    I am signing the message using pub.security.pkcs7:sign.
    But here problem is I am not able to get the detached signature.
    If I select the option Detached signature it is giving only signature.
    How can I manage the Detached signature and Message at HTTP port.
    Please help me.
    Thanks and regards,

  • Writing output data via CN2FF to Smar FB/I device

    I am having a problem writing data from Control Logix 5K via a 1788-CN2FF linking Device to a Smar FB/I FI302. I have the proper function block and see the data being "sent" from the CN2FF output to the input of the Smar function block (good data), all bocks in "Auto", none in "OOS", however the output of the Smar is not sending any data via it's output. Any ideas?

    Hello,
    Would you please contact Rockwell for support on this issue? Thanks!

  • Send data via HTTP and wait 10 Seconds before sending next Message

    Hi Folks,
    I am doing an IDOC - XI - HTTP scenario.
    after sending a message via the HTTP-receiver I have to wait up to 10 Seconds, before my partner accept the next Message.
    Is there a way to configure the HTTP-receiver to wait?
    Thanks,
    Chris

    Hi Chris,
    You can use ccBPM for this scenario.
    Scenario 1 :
    1 IDOC contains multiple records, so you can convert to multiline items.
    Loop base on the multiline items (Block Step).
        Send Step for sending http request.
        wait step to wait for 10 seconds.
    Scenario 2 :
    1 IDOC contains only single record. so you need to collect the IDOC until certain time.
    Loop base on the multiline items (Block Step).
        Send Step for sending http request.
        wait step to wait for 10 seconds.
    Regards
    Fernand

  • Sending a dom via http Post

    Hi,
    for some reason unknown to me whenever I try to send a dom via http Post I get the following error:
    org.xml.sax.SAXParseException: The root element is required in a well-formed document.
    This is the source code:
    package com.cyberrein.payunion.transaction;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    //xml lib
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    //weblogic xml lib
    import weblogic.apache.xerces.dom.DocumentImpl;
    import weblogic.apache.xml.serialize.DOMSerializer;
    import weblogic.apache.xml.serialize.XMLSerializer;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    public class Xmltest extends HttpServlet {
    //Initialize global variables
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    //Process the HTTP Request
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    // Retrieve transaction data from HttpServletRequest.
    try {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setValidating(false);
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document docIn = db.parse(request.getInputStream());
    String code = "XX";
    String tranID = "000000";
    String message = "This Card Is Invalid. Transaction Discontinued";
    //Output dom
    Document docOut = new DocumentImpl();
    Element e = (Element)docOut.createElement("TransactionResponseData");
    e.setAttribute("Code", code);
    e.setAttribute("TransactionID", tranID);
    e.setAttribute("Message", message);
    docOut.appendChild(e);
    FileOutputStream fos;
    fos = new FileOutputStream("/victory");
    DOMSerializer serX = new XMLSerializer(fos,null);
    serX.serialize(docIn);
    DOMSerializer ser = new XMLSerializer(response.getOutputStream(), null);
         ser.serialize(docOut);
         } catch (Throwable e) {e.printStackTrace();}
    //Get Servlet information
    public String getServletInfo() {
    return "com.cyberrein.payunion.transaction.Xmltest Information";
    package com.cyberrein.payunion.transaction;
    import org.w3c.dom.*;
    import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xerces.parsers.*;
    import org.apache.xml.serialize.*;
    import org.xml.sax.*;
    import java.net.*;
    import java.io.*;
    public class CardClient {
    private String sURI;
    public BufferedReader in
    = new BufferedReader(new InputStreamReader(System.in));
    public CardClient(String serverURI) {
    sURI = serverURI;
    public Document test(){
    Document docIn = null;
    try
    //XML Document impl
         docIn = new DocumentImpl();
    //Create the root element
         Element t = docIn.createElement("TransactionData");
    Element k = docIn.createElement("Payunion.com");
    k.appendChild( docIn.createTextNode("North American server") );
    t.appendChild(k);
    //Set attributes
    t.setAttribute("cardnumber", "4444444444444444");
    t.setAttribute("amount", "3000.67");
    t.setAttribute("name", "tolu agbeja");
    t.setAttribute("cvv2", "001");
    t.setAttribute("pu_number", "ejs:pupk:23456");
    t.setAttribute("expirydate", "0903");
    t.setAttribute("address", "100 peachtree industrial");
    t.setAttribute("zipcode", "30329");
    docIn.appendChild(t);
    catch (Throwable te)
    te.printStackTrace();
    return docIn;
    public Document sendRequest(Document doc) {
         Document docOut = null;
         try {
         URL url = new URL("http://" + sURI);
         HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("POST");
         conn.setDoInput(true);
         conn.setDoOutput(true);
         OutputStream out = conn.getOutputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    XMLSerializer ser = new XMLSerializer( out, new OutputFormat("xml", "UTF-8", false) );
    ser.serialize(doc);
    while(!br.ready()){}
         DOMParser parser = new DOMParser();
         parser.parse(new InputSource(br));
         docOut = parser.getDocument();
    catch (Throwable et)
         et.printStackTrace();
         return docOut;
    public static void main(String []args)
    CardClient c = new CardClient("cyber1:7001/xmltest");
    try
    Document doc = c.sendRequest(c.test());
    Element responseMessage = (Element)doc.getElementsByTagName("TransactionResponseData").item(0);
    String message = responseMessage.getAttribute("Message");
    String tranID = responseMessage.getAttribute("TransactionID");
    String code = responseMessage.getAttribute("Code");
    System.out.println(message);
    System.out.println("");
    System.out.println("The Response Code Is: "+code);
    System.out.println("");
    System.out.println("The Transaction ID Is: "+tranID);
    catch(Exception ex)
    ex.printStackTrace();
    All comments will be appreciated!!

    Hi, thanks for your reply i knew the FileUplaod was the way forward.
    I read topics advising to use the FileUpload and tried the following but it did not seem to work ( i get an HTTP Internal Server error when i try that):
    try
    DiskFileUpload upload = new DiskFileUpload();
    boolean isMultipart = FileUpload.isMultipartContent(request);
    if( isMultipart )
    List items = upload.parseRequest( request );
    Iterator iter = items.iterator();
    while( iter.hasNext() )
    FileItem fileItem = ( FileItem ) iter.next();
    File uploadedFile = new File("myreceivedfile.zip");
    fileItem.write( uploadedFile );
    }catch (Exception e)
    System.out.println("RECEIVER: " + e.getMessage());
    Also DiskFileUpload,isMultipartContent and parseRequest have a line going through the middle (horizontal middle).
    Edited by: Overmars08 on Jun 23, 2009 5:35 AM
    Edited by: Overmars08 on Jun 23, 2009 5:36 AM

  • R/3(sends IDOC data)  to IBMMQ via XI.

    Hi,
    My requirement is R/3(sends IDOC data)  to IBMMQ via XI.
    I need to sent up Integration Builder: design as well as configuration.
    Can anyone send me a document which describes a complete end to end scenario?
    I have seen the forum and the blogs but none decsribe the complete end-to-end scenario.
    Plz reply at the earliest.
    Regards,
    Mateen.

    <i>My requirement is R/3(sends IDOC data) to IBMMQ via XI.</i>
    >>>
    there is no document as sucj available on SDN that will help u implement the above scenario. But you can have help on
    1. sending the IDoc to  XI - Ref: https://wiki.sdn.sap.com/wiki/display/XI/SAPR3%28Idocs%29ToXI--Steps+Summarized
    2. IBMMQ - you will have to use the JMS adapter. To receive help on configuring the receiver JMS adapter ref: http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm

  • How to send data through gprs from j2me application to desktop

    hi
    i wanna send some data to a server(where http://localhost:8080/ccp.html is running).i wanna catch this data and use it further.
    how to do it through query string/xml.

    Hi srini,
    it depends upon what is the receiver system.If you want to save the emails coming from SAP to Files ..then u will have to use File adapter in the receiver side...
    check these weblog.....
    Receiving Mail attachments using additional files of file adapter
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    Regards
    Biplab
    Use a Good Subject Line, One Question Per Posting - Award Points

  • Error when sending infotype 2 via ALE - start date

    Hi all,
    we are facing the following error when using the standard method for HR distribution: changes in infotype 2 cannot be processed in the receiving system; each change results in a 51 error in the iDoc, with message "PA0002 could not be updatedu201D (msg number 5-108).
    For some background: we're using message type HRMD_A06 and the standard configuration as described in the "ALE Quickstart" document. We've sent the full set of employee data via report RHALEINI, and use RBMDIDOC and change pointers to send changes on a daily basis. All infotypes are updated correctly except 2.
    From our tests, it seems that the problem is the following:
    - the initial send via RHALEINI created infotype 2 records with start date 01.01.1900. The sent iDocs had at the level E1P1TYP for infotype 2, start date 01.01.1800
    - the daily report RBMDIDOC is sending the infotype 2 records with their real start date (i.e. birthdate of the employee). Since this is later than 01.01.1900, the replacement of one infotype by another in the receiving system fails. By manually changing the start date of infotype 2 in the receiving system, the next update is successful --but we do not want to manually update all records in the receiving system.
    Has anyone else faced this or a similar issue with RHALEINI and infotype start dates?
    Thanks in advance,
    Mariana
    Edited by: Mariana Lasprilla on Feb 5, 2009 10:35 AM

    The mystery has been solved: customer system had a conversion rule for message type HRMD_A in order to send a fixed value of BEGDA for all infotype 2 records.
    ALE conversion rules are set via table TBD30.

  • Send Form Data to PC via USB cabile

    Respected SIr/Madam
    I want to send Form Data or RMS Data to PC via USB data cabile .
    Is it Possible ?
    if it is possible then please give me some idea how to make it
    thanks in advanse
    Souvik

    Yes ..
    First ensure that driver for the Data cable is installed.
    Get the comm port number .
    In windows
    control panel->Phone & Modem options ->Modems..
    The Comm port no for the data cable is present in Attached To column.
    In Linux ..
    you can get it by checking the Device options
    Next
    U need to establish a connection between PC & Handset using the comm port.
    Note that The comm port obtained here is the reference commport in the PC..
    U can get the comm port number in Handset using the J2ME application itself..
    String port;
    String ports = System.getProperty("microedition.commports");
    int comma = ports.indexOf(',');
    if (comma > 0) {
    // Parse the first port from the available ports list.
    port = ports.substring(0, comma);
    } else {
    // Only one serial port available.
    port =ports;
    /*Below is a code example showing how you can use serial I/O API to open a connection and read/write
    to it. */
    //using commconnection since midp2.0
    CommConnection commConn =
    (CommConnection)Connector.open("comm:COM0;baudrate=115200", Connector.READ_WRITE,
    true);
    InputStream iStream = commConn.openInputStream();
    OutputStream oStream = commConn.openOutputStream();
    String sMessage = "send";
    oStream.write(sMessage.getBytes());
    Thread tRead = new Thread() {
    public void run() {
    while (true) {
    StringBuffer sb = new StringBuffer();
    while(true) {
    int c = iStream.read();
    if(c != '\r') {
    sb.append((char)c);
    else
    break;
    try {
    sleep(1000);
    catch (InterruptedException e) {}
    tRead.start();For some handsets that do not support CommConnection, you can use StreamConnection in place of
    CommConnection with the same result:
    StreamConnection commConn =
    (StreamConnection)Connector.open("comm:COM0";baudrate=115200"); The above code is for J2me application running on Handset ...
    In PC you can refer it using the comm port identified from the Control Panel.

Maybe you are looking for

  • Can I use the HDMI Out on my macbook pro retina for audio without connecting a video device?

    While the MBP has TOSLINK output from the headphone jack, TOSLINK does not have the bandwidth to carry the high resolution audio from many blu-rays and DVD-Audio disks. I would like to hook my MBP to an audio-only HDMI sink so I can pipe the multicha

  • Window Handle getHWND() for jdk 5.0

    Does the following getHWND() method works for jdk 5.0? public int getHWND () {      DrawingSurfaceInfo drawingSurfaceInfo;      Win32DrawingSurface win32DrawingSurface;      int hwnd = 0;      drawingSurfaceInfo = ((DrawingSurface)(getPeer())).getDra

  • Accuracy of Cellular Network Positioning

    Most of Asha sereis like Asha 230, Asha 500 etc. comes with cellular nework positioning for GPS navigation. How much error or accuracy is there in determining current location by using this technology?

  • Multiple pictures to enhance

    How do I do a batch photo enhancements all at one time? Also how can I add multiple music to my slide show presentation?

  • Can't change user preferences when Acting As a user

    I've configured the 'Act As' functionality so as an administrator (Proxy User) I can log in as another user. However when I attempt to change any of target user's preferences I get the following message :- "Exception occurred when saving user prefere