Fork us on GitHub

Webservice Wizard

Simplified webservice access has long been on our todo list a...
Webservice Wizard

Webservice Wizard

Simplified webservice access has long been on our todo list and we now finally have a tool that significantly simplifies server communications in Codename One to a method call level. We just posted a How Do I? video for this feature and will launch it with the plugin update next week. The feature is remarkably simple in concept, you define a set of methods and get a client class coupled with some server classes so you can invoke server functionality directly from the mobile.

In order to support SOAP/REST and other standard protocols just use the far superior Java EE webservice capabilities and use the webservice merely as a proxy for that purpose. Since the calls are binary their overhead is remarkably low both on the wire and don't require any real parsing resulting in much faster communications when compared to SOAP, REST & even to GWT's RPC.

If you are familiar with GWT's RPC you should feel pretty much at home, although we did simplify some concepts. One of the cool features we offer in contrast to GWT is the ability to invoke methods synchronously thanks to the fact that we do have access to threads. This makes RPC logic far more intuitive and transactional.

Thanks to all of you who sent valuable feedback in regards to this feature!

Notice: This post was automatically converted using a script from an older blogging system. Some elements might not have come out as intended.... If that is the case please let us know via the comments section below.

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.