Journal
By Damien LEFEVRE, Friday 6 April 2007 at 12:23 :: Journal :: #48 :: rss
The user administration on the phone works now and is ready. For this I had to create a list box for displaying the products:
I had to make some modifications on the list base class which will be documented soon in the new documentation version.
I had difficulties with the server side that for some reason send UTF-8 or ISO-8859-1 randomly on request response. It broke the XML parsing, so some more verifications where needed from that side.
I also lost much time debugging the jsp services with Jori. The port from Linux to Windows 2000 added lots of errors that mostly where calling executable with wrong path for resizing pictures for example, wrong URL printed on the XML files, wrong XML tag given in the documentation...
Now on the client side I had to recode some part also. After solving the encoding problem I had difficulties to send too long requests with HTTPConnection object. The work around is to create a temporary XML files on the RAM disk and then upload this XML file for each request. Since the file data is sent as base64 string, it fixes all encoding problem and request length difficulties.
I had to recode the previous public part, i.e: the list of services where you don't need to login. It was working but let say that it was kind of a spaghetti design. The good point of taking Symbian C++ course is that you have to stick on designing method and it finally simplify the task quite much. I now try to stick as much as I can on MVC (Model View Controller) design for the classes. It is not always possible to perfectly stick on it but... try the best. Here is a picture from Wikipedia:
I'm now about to terminate the programming part of the project. I just have to do some more hand user testing and catch/reproduce some different scenario cases that could shout errors and/or freeze the application, like network loss...