×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    97

    Question Sending information from file to a server?

    Hi All,
    This is regarding a small application I m making.I want to build an application for my nokia 6630 phone which when runs by the user should show a text box with some buttons in a form and the user should type some text in the text box and presses a button.
    I have got the Cell ID stored in a file in phone's drive. Now i want to send the text which the user gives in the form along with the cell id stored in the file to a server to receive those information.

    currently I m using s60 2 edition FP2 SDK in Carbide.c++ for my phone. plz guide me, which classes of the SDK shall i use to build the UI forms n text boxes etc.? plz give some sample examples to such UI for my phone...And one more thing how can the sending of information from my phone to the server (listening on some external IP) can be done? I want to send the whole text data to the server and the server should accept the data for further processing..Is there any application protocol to use ? I heard, there are ways like WAP,SOAP, plain XML file or plain text sending like methods to send the info to the server...plz tell me which of the above methods will be suiotable for this particular application...?

    I m using c++ as my prog lang and my whole concern is to send the information retrieving from the text box and file to the server...

    plz give some light on this inline with my queries if possible...Any useful links/code snippets will of great help..

    thanks a lot for the most useful replies.
    Regards,
    sanjay

  2. #2
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: Sending information from file to a server?

    Hello,
    for sending text to the server you could use post or get method.
    You can find example of http post/get here:
    http://www.forum.nokia.com/info/sw.n...I_Example.html
    For creating text editors try to search on http://wiki.forum.nokia.com for code examples.

    Good luck

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    97

    Re: Sending information from file to a server?

    Thanks for the quick reply. actually I m working on s60 2 edition fp2 device(nokia 6630) and the examples u supplied works on s60 3 edition devices..plz give some other links suitable to my device for the sending of data to the server...
    regards,
    sanjay

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Sending information from file to a server?

    In fact it still depends on the server you have. In the SDK you use you can already find IP examples, like Series60Ex\sockets (this will surely run) and Examples\Networking (those examples come from Symbian, so they do not necessarily suitable for executing directly on an S60 device). And there is a HTTP example too: Examples\appprots\exampleclient - this is also a generic Symbian example, so you may have to extract its content and put it into some S60 GUI code.

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    97

    Re: Sending information from file to a server?

    Hi,
    Regarding my previous question, I want mention smthng more. The server can be http server listenting on some external IP. So my app should get some search text from user and adding the cell id info with it, sends the info to the server. The server will search some database to find the search text depending on the Cell id. Now my que is how the mobile device will send the text info to the server.? I read the HTTP Client APIs for that purpose and they tell these r specific to synbian OS ans cant be directly used with s60 UI..so can I use the code snippets mentioned in HTTP client API for symbian OS to transfer data to the server? Or should I use the SOAP for transfering the data? will it be convenient?

    my device is s60 2 edition fp2 device...plz give me some info regarding this..

    thanks a lot.
    sanjay

  6. #6
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    97

    Re: Sending information from file to a server?

    Quote Originally Posted by wizard_hu_ View Post
    In fact it still depends on the server you have. In the SDK you use you can already find IP examples, like Series60Ex\sockets (this will surely run) and Examples\Networking (those examples come from Symbian, so they do not necessarily suitable for executing directly on an S60 device). And there is a HTTP example too: Examples\appprots\exampleclient - this is also a generic Symbian example, so you may have to extract its content and put it into some S60 GUI code.
    Hi,
    As you suggested, I ran the sockets example on the device and it gave some error message..Does the device should be connected to internet to test the sockets example application? Otherwise how could i know the app is running ok witht he IP i hav supplied in the UI...

    So I can extract the HTTP code example and use that for the sending of info from my phone to the server?

    plz put some light on this..
    thanks
    sanjay

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Sending information from file to a server?

    What error message do you get?
    Anyway, it is sure that you should have some working IAP on the device. Can you browse the Internet for example?

Similar Threads

  1. Tranfering file by bluetooth
    By hassan83 in forum Symbian
    Replies: 5
    Last Post: 2008-04-18, 17:01
  2. strange behavior on sending jar file via WAP for different mobile network
    By thone in forum Digital Rights Management & Content Downloading
    Replies: 2
    Last Post: 2005-10-28, 07:53
  3. Replies: 0
    Last Post: 2005-10-27, 20:51
  4. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×