Symbian OS: End-To-End
HTTP API Example
SERIES
60
PLATFORM
Version 1.1
October 5, 2005
Symbian OS: End-To-End HTTP API Example | 2
Legal Notice
Copyright © 2005 Nokia Corporation. All rights reserved.
Nokia, Nokia Connecting People and Forum Nokia are registered trademarks of Nokia
Corporation. Java and all Java-based marks are trademarks or registered trademarks of
Sun Microsystems, Inc. Other product and company names mentioned herein may be
trademarks or trade names of their respective owners.
Disclaimer
The information in this document is provided “as is,” with no warranties whatsoever,
including any warranty of merchantability, fitness for any particular purpose, or any
warranty otherwise arising out of any proposal, specification, or sample. Furthermore,
information provided in this document is preliminary, and may be changed substantially
prior to final release. This document is provided for informational purposes only.
Nokia Corporation disclaims all liability, including liability for infringement of any
proprietary rights, relating to implementation of information presented in this document.
Nokia Corporation does not warrant or represent that such use will not infringe such
rights.
Nokia Corporation retains the right to make changes to this specification at any time,
without notice.
License
A license is hereby granted to download and print a copy of this specification for
personal use only. No other license to any other intellectual property rights is granted
herein.
Version 1.1 | October 5, 2005
Symbian OS: End-To-End HTTP API Example | 3
Contents
1. Introduction ......................................................................................................... 6
2. Architecture ......................................................................................................... 7
2.1 PHP .................................................................................................................................7
2.2 J2EE................................................................................................................................8
2.2.1 Model......................................................................................................................9
2.2.2 Controller ................................................................................................................9
2.2.3 View ........................................................................................................................9
3. Use Cases .......................................................................................................... 11
3.1 Mobile Client .................................................................................................................11
3.1.1 Load tasks ............................................................................................................11
3.1.2 Complete task.......................................................................................................12
3.1.3 Interaction diagram...............................................................................................12
3.1.4 Important classes .................................................................................................13
3.2 Web UI ..........................................................................................................................14
3.2.1 View tasks.............................................................................................................14
3.2.2 Change password.................................................................................................15
3.2.3 Add task................................................................................................................15
3.2.4 Delete task............................................................................................................15
3.2.5 Modify task ...........................................................................................................16
3.2.6 Send SMS ............................................................................................................16
3.2.7 Add user ...............................................................................................................16
3.2.8 Delete user ...........................................................................................................17
3.2.9 Modify user ...........................................................................................................17
3.2.10 Interaction diagram...............................................................................................18
4. Installation and Configuration ......................................................................... 19
4.1 Mobile Client .................................................................................................................19
4.1.1 Installation ............................................................................................................19
4.1.2 Certificate..............................................................................................................19
4.2 Web Server ...................................................................................................................19
4.2.1 Installation ............................................................................................................19
4.3 Security (SSL) ...............................................................................................................19
4.3.1 Installing and configuring SSL for PHP ................................................................19
4.3.2 Configuring SSL for J2EE.....................................................................................20
4.4 Database.......................................................................................................................21
4.4.1 Installation ............................................................................................................21
4.4.2 User table .............................................................................................................21
4.4.3 Task table .............................................................................................................22
Version 1.1 | October 5, 2005
Symbian OS: End-To-End HTTP API Example | 4
4.4.4 Roles table............................................................................................................22
4.4.5 Userrolemap table ................................................................................................22
4.5 Configuring Web UIs .....................................................................................................22
4.5.1 Installing and configuring PHP .............................................................................22
4.5.2 Setting up J2EE....................................................................................................23
5. Evaluate This Resource.................................................................................... 25
Version 1.1 | October 5, 2005
Symbian OS: End-To-End HTTP API Example | 5
Change History
July 26, 2005 Version 1.0 Initial document release
October 5, 2005 Version 1.1 Information about JSP included in the
document
Version 1.1 | October 5, 2005