Skip to main content

Web Service Programming for the Masses, Part II: Developing the RIA

Posted by stoicflame on January 9, 2008 at 11:41 AM PST

The first part of this tutorial walked through the development of a Web service API that exposes its endpoints via SOAP, REST/XML, JSON, GWT-RPC, and AMF. In this second part of the tutorial, we intend to prove out this API. We will walk through building a rich AJAX application with an embedded Flash component. The AJAX application will use
GWT-RPC to access the API while the Flash movie will use
AMF.

For those of you who would like to see the example code on your local filesystem, you can check it out of SVN at http://svn.codehaus.org/enunciate/trunk/enunciate/src/samples/addressbook/.

Step 1: Set up the GWT application.

We first have to create our GWT application. We will use the name

Comments

The FindContactsByTypeResultEvent is missing in this tutorial

First of all, this is a great example to follow to get familiar with enunciate. However, I met bytype.mxml(32): Error: Type was not found or was not a compile-time constant: FindContactsByTypeResultEvent. after I run mvn jetty:run-war.

Re: The FindContactsByTypeResultEvent is missing in this tutoria

Hmm... The FindContactsByTypeResultEvent object is generated by Enunciate before the flex compile should be invoked. I'm not sure why that's not happening in your case.

When I checkout that example and do "mvn -Dgwt.home=/path/to/gwt/home -Dflex.home=/path/to/flex/sdk/home clean jetty:run-war" it works for me.  I'm on java version "1.6.0_17" and Apache Maven 2.2.1.