We would like to implement our service tier from conventional web services to restful style services. Any suggestions on how to integrate smartclient with those?
Hello xiaow,
There’s a great deal of documentation, examples and advice on REST available in SmartClient.
Overview information starts in the QuickStart Guide, Chapter 8, Data Integration. Specifically for REST, the new RestDataSource class provides a ‘cookbook’ approach for REST integration if you do not already have pre-existing XML or JSON message formats. An example showing all 4 core DataSource operations is here.
If you do have pre-existing message formats, see the section “Consuming Existing XML and JSON formats” under Client-side Data Integration. Examples are here for XML and here for JSON.
Out of curiosity, what’s driving your shift from WSDL to REST? If you are new to SmartClient, you should definitely take a look at SmartClient’s WSDL Binding capabilities, because SmartClient makes it very easy to bind to WSDL, handling complicated issues like XML namespacing and SOAP message formation transparently, and also making it possible to bind UI components to the structure of WSDL messages (example).
Thank you so much. It seems I need to go through your new release. The reason makes us interested in Rest is our backend will be ejb 3 based pojo objects. Rest seems to be a right fit to expose all operations on a pojo with a straight URL. Also potentially minimize the maintenance of large wsdl.
Hello xiaow,
If you install the SmartClient Java Server, we have server-side integration approaches that also map very nicely and easily to Java beans. This is definitely less work than REST-based integration. Be sure to look at the Server Integration examples in the SDK as well, accessible from the SDK Explorer.