Jungi's Blog...


« Previous month (Mar 2008) | Main | Next month (May 2008) »
Friday May 30, 2008

Remember The Milk

Some time ago Google point me to the Remember The Milk service which looks interesting although it definitely wasn't what I've been looking for. An interesting question which came into my mind was if and how this service could be integrated into the IDE.

There's already available some documentation which describes way how services could be integrated into NetBeans' REST palette, which has been replaced by Web Service Manager in NetBeans 6.1, see for example http://wiki.netbeans.org/CreatePartnerWebServiceModule, http://wiki.netbeans.org/RESTPartnerSvcRegistration or Geerjan's blog but none from these shows how to integrate some service with REST interface, like ie Remember The Milk, into the IDE. And "how" is really simple, just follow these steps:

  1. create some NetBeans module project
  2. write the WADL file
  3. write the XML schema (optional)
  4. write (well, just copy ;-)) templates for Authenticator and Service files
  5. write the saas-service description document
  6. tweak module's layer.xml file to contain correct reference to saas-service description
Simple, isn't it?

So for Remember The Milk service, which is similar to Flickr we need:

  1. create some NetBeans module project
  2. WADL file
  3. XML schema (will be added later)
  4. some templates, see sources
  5. write the saas-service description document
  6. module's layer.xml
and that's all, now module can be built, installed and used from the IDE.

Module sources are available here, nbm you can install into the IDE is here. Enjoy!

In the next part I'll try to show, how this service can be called and used from within the IDE

.


Today's Page Hits: 31