Raymond Feng wrote:
Hi,
I put together a demo application to showcase our XML integration
story. The business scenario is derived from the bigbank demo and the
main function is to calculate the total value (using a selected
currency) of a customer who has checking/saving/stock accounts.
At this moment, I add three different sources to provide XML data.
1) A live feed to retrieve the exchange rate (binding.feed) and use
XPath to exact the rate for a given currency. I have to use Rome API
to convert the feed as our feed binding produces Feed objects.
2) The account data for a customer is loaded from a XML file. (We can
use implementation.data once Sebastien's proposal is implemented).
3) A live Web Service invocation to get the quotes for a list of
symbols. Only XMLStreamReader is used as the input and output.
(binding.ws)
4) The calculation of the total value is implemented using XQuery to
join the XML data from 2 and 3. (implementation.xquery)
The demo application is checked in under r581755. I hope we can use it
as a test-bed to further drive our XML integration story. Please feel
free to chime in with your ideas, for example, add implementation.data
or implementation.das, or implementation.bpel.
Thanks,
Raymond
A few comments:
- This looks pretty good!
- CustomerAsset looks like the AccountService from the Java Bigbank
demo, if it's the same thing then it should be named AccountService to
avoid any confusion and make the comparison easier.
- I think we should try to remove all Java code from the demo and try to
implement CustomerAsset (or AccountService) as a BPEL process or an
XQuery function.
and a question:
- What would it take to return Account summary complex documents from
the AccountService instead of just a number? Can we do this without
having to generate any code?
(I'd like to do change the Java Bigbank demo to return account summaries
as well, like the original Bigbank scenario described in the original
spec docs)
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]