You can create XML based clients for business components using XSQL servlet. XSQL servlet allows you to easily get data in and out of the database in XML format. The following procedure shows how to bind an XSQL client to a business components project you have already created, using the ViewObject Show tag to display the view object's data in XML format. You could also use the ViewObject Update tag to process inserts, updates, and deletes to a view object.
Note: To use XSQL pages with the Business Components XSQL action handlers, the XSQL Runtime and the JBO HTML libraries need to be in your project's classpath, in addition to any JBO libraries that are needed based on your intended connection mode. JDeveloper includes them in the classpath automatically.
To create an XSQL servlet client for business components:
This adds a skeleton XSQL file named untitled#.xsql to your
project.
<page xmlns:xsql="urn:oracle-xsql">
tag.The ViewObject Show tag shows the view object's data in XML format. The ViewObject Update processes inserts, updates, and deletes to a view object based on an optionally transformed XML document.
Notice that the tag and attributes you entered appear in the XSQL page.
You can format the XML data with a style sheet. The XML data also can be passed on to another application through a messaging service.
Note: Please refer to the section titled "Caveats while Querying View Objects with Circular ViewLink Accessors" in the ViewObject Show help topic if you get the XSQL error JBO-27122.
Creating a New Business Component
Project
Creating XSQL Servlet Clients that
Access the Database
Formatting XML Data with a Style Sheet