630 likes | 739 Views
Projet LuxDeal. Mathieu Baeumler, Fabrice Daugan & David Hoeung. Presentation of LuxDeal. An exchange based service. LuxDeal Features. Login, Logout, User profile and settings Search an offer by : Category City Country Keywords Submit, see an offer Propose a deal with another member
E N D
Projet LuxDeal Mathieu Baeumler, Fabrice Daugan & David Hoeung
Presentation of LuxDeal • An exchange based service
LuxDeal Features • Login, Logout, User profile and settings • Search an offer by : • Category • City • Country • Keywords • Submit, see an offer • Propose a deal with another member • Multi-languages
Problématiques • …
Considerations • Battery life • Memory • CPU • Bandwidth • Design
SOAPSimple Object Access Protocol • Based on XML • Procedure calls on remote objects • Exchange of structured, typed informations on the Web • Support of severals protocols and internet formats (SMTP, MIME, HTTP…)
SOAP • Creation of Web-services • Define elements to specify : • Method’s name • parameters • retourned type
SOAP • SOAP requests: LIEBIG <soap:Body> <ns1:login xmlns:ns1="urn:LuxdealService"> <username xsi:type="xsd:string">cedrprus</username> <password xsi:type="xsd:string">newpass</password> </ns1:login> </soap:Body>
Apache SOAP • Popular : • Java • Complet API • Open source
Server Tomcat • Developed by Apache (project jakarta) • HTTP Server • Servlets Container
JerryMouseTomcat • Two objects : • An initialization class (servlet) • Connection to MYSQL, DB’ managing, authentification • An implementation class • Service’s method
JerryMouseTomcat • Definition of Web-service: • ‘web.xml’ • Parameters of service (login root, path…) • ‘deploymentDescriptor.xml’ • Profils of functions
Smartphone Mobile-base smartphone device Windows CE
Smartphone Toolkit Smartphone 2002 SDK, eMbedded Visual C++ 3.0 Smartphone 2003 SDK eMbedded Visual C++4.0 SP2 Visual Studio .NET 2003 CF
Developing the application Two problems to resolve : Deals with Windows User Interface No MFC ATL Win 32 API Messaging with SOAP MS Soap Toolkit not available for eMbedded Visual C++ HTTP + XML
HTTP WinInet API InternetOpen() ConnMgrEstablishConnectionSync() InternetConnect() HttpOpenRequest() HttpSendRequest() InternetReadFile()
XML Format SOAP message Parsing XML using MSXML DOM using COM
Designing User Interface With the IDE resource editor Dialog Control String table Multi User Language
Architecture No MVC No Document/View A dialog class by Dialog resource
j2me I About j2Me II Networking III Application creation IV Emulation
j2me I About j2Me
j2me Non usual life cycle of MIDLet
Life cycle Pause the MIDLet Restart the MIDLet Destroy the MIDLet 3 states Create the MIDLet Start the MIDLet
j2me I About j2Me II Networking
SOAP Libraries : KSOAP 1.2 or KSOAP 2.0 http://ksoap.enhydra.org/
KSOAP 1.2 Libraries : Use KXML 2.0 http://kxml.enhydra.org/
SSL Libraries : KSSL or SSL http://kssl.enhydra.org/
j2me I About j2Me II Networking III Application creation
SDK’s • Beta Release of the J2ME Wireless Toolkit 2.1 (WTK21) • Sprint PCS Java Wireless Toolkit 1.0.3_01 • Sony Ericsson SDK 1.2 • Siemens Mobility Toolkits (SMTK) for Java™ • Motorola SDK v4.0 for J2ME • Nokia Developer's Suite for J2ME(TM) 2.0 (2.6.2003) • Impronto Developer Kit for Linux
Application creation 1) Compilation 2) Preverification 3) Obfuscation 4) Jarring and JAD updating 5) Deployment
Compilation • Depending on targeted device • Simple javac Wireless Tool Kit 2.1 example : Motorola example : javac -g:none -bootclasspath ..\simulators\WTK21\lib\midp20.zip;..\lib\soap -d ..\tmpclasses ..\src\luxdeal\*.java javac -target 1.1 -O -bootclasspath ..\simulators\motorolaA760\lib\midp.zip;..\lib\soap -d ..\tmpclasses -classpath ..\tmpclasses ..\src\luxdeal\*.java