Web Services

Overview

This sample will search Google using the Web Service interface of Google's SOAP Search API. This sample also demonstrates using data service requests through an MCO and also defined directly in the XAL file. Google web service allows for searches with results in blocks of ten along with spell checking / suggestion.

The "Search" button makes a request to Google Web Service, passing the text of the search string text field as a parameter along with the other keys already defined in the embeddedServiceRequest. On the client, a table showing title and descript is build for each result using the DocumentDataSource and DataIterator from the Nexaweb Data Framework.

The "Spell" button makes a request to Google Web Service - SpellingSuggestion service and the on the client a dialog / alert is defined with the results.
 

Concepts Demonstrated

  • Using Nexaweb Data Service Framework to call a SOAP Web Service.
  • Using Nexaweb Data Framework to bind web service results to client UI.
  • Using MCO to call a serviceRequest.
  • Using XAL file to call a serviceRequest.
  • Using formatter (in Java Application) to format the results.
     

Browse Subversion (browse)