Done! Our iPhone SevenClick Blog reader is finished are ready to be deployed in production!
On the previous post, I wrote about some useful tools to use with GWT and iPhone and now we will talk about the server-side development.
The point of developing the server side is clear: It is regular and easy Java programming. It is even easier if you use some IDE plugin like the GWT4NB. You have to proceed as follows:
- Define your service interface: Ask yourself this question: What are going to need in order to get data from the server asyncronously? Once you have the answer define the needed methods.
- Define an asynchonous interface. Just change the syntax of the previous interface.
- Implement the methos in the server: 100% Java. Nothing more.
- In the client, define the method to be triggered once the operations is finished.
Just this easy. And nothing is different from any other Web development! Anyway you can read the docs to find out more about serializing types or handling exceptions.
On the next, and final, post I will talk about the client-side of the application and the many features GWT offers. Actually the hard point is to meet the iPhone specific graphical requirements. Although this is neither trivial nor easy we want to improve our knowledge in this matter and we are studying to make further developments …
Next post: GWT+ iPhone client development.