Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tuscany supports JSON-RPC as a protcol for use with SCA services by using the <binding.jsonrpc> element in your Application composite. This enables remote web browser clients to easily make RPC style calls to server-side SCA components.

User Stories

  • A web browser client application invoke a remote SCA Service using JSON-RPC and the invocation return business objects in JSON format. (tick)
    • e.g. Retrieve catalog items
  • A SCA component can define a reference to a remote SCA Service and use JSON-RPC for the invocation. (tick)
    • e.g. A catalog aggregator invoke various catalog services using JSON-RPC and aggregate the returned items into a single response
  • A client application invoke a SCA Service using JSON-RPC and the invocation returns a business exception. (tick)
    • e.g. Empty catalog throws a Busines Exception. Business Exception should properly propagate and display nicely to client.
  • A client application invoke a SCA Service using JSON-RPC and the invocation returns a runtime exception. (tick)
    • e.g. Try to retrieve catalog items from a catalog service that is un-available. Runtime exception properly propagate and display nicely to client.
  • A client application needs to access a service exposed trough JSON-RPC binding that requires authentication.
    • e.g. make sure if nobody can get to the catalog if it's not authenticated

...