[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [sca-bindings] Use cases for HTTP binding
From: | Jim Marino <jim.marino@gmail.com> |
To: | OASIS Bindings <sca-bindings@lists.oasis-open.org> |
Date: | 08/09/2010 04:04 PM |
Subject: | Re: [sca-bindings] Use cases for HTTP binding |
Description | Exploit an existing HTTP-based service that has XML-based result. More specifically, a JAX-WS or Ruby-On-Rails service, wherein the URLs for the service are reasonably predictable. Map that to a set of operations mapped to messages being exchanged |
Preconditions |
|
What happens: | In binding the portType to an HTTP GET request, the child
elements of the request operation get mapped to parameters on the URL.
Default mapping is element local name to parameter name. Binding
needs to specify a URL with substitution points. Root element of response document is the response element for the result. In case of an HTTP error code, where specified, a fault is mimicked for "replies." |
Post-conditions | Invocations of the "reference" operation return the XML results mapped to the language mapping of said data structure |
Description: | Stateful "monitor" of an service providing 1 or more atom feeds, supporting three operations "getNewEntriesForFeedFoo", "getLastNEntriesForFeedFoo", "getContentForFoo" - per Atom feed. |
Preconditions: | Service that offers up one or more atom feeds Atom feeds are changing slowly enough that polling for data at lazy intervals (1 - 60 minutes) is sufficient Customer has a name for each URL. Operations in the interface follow a known pattern like getNewEntriesForFeedFoo Customer has particular data that they're interested in from each feed, such as author, modification date, ID, other metadata |
What happens | A service requests an update from a specific specific feed by calling getNewEntriesForFeedFoo (where "Foo" changes per feed) |
Post-conditions | Returns a list of new entries, the list of the last N entries requested, or the content for the particular entry. |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]