1. Data Services
In SOA, the enterprise's data is exposed as a service, and decoupling from the underlying storage is the data service.
2. MSYQL Type Database exposure Service Test example
http://blog.csdn.net/jackliu91/article/details/23863719
3. Sample
Refer to Document dss350-270716-2046-21210.pdf on page No. 404;
Data Service binding IP, after reboot invalid???
4. Basic Concepts
4.1. Service (Services)
The service is the basic unit in DSS, has the data source, the query, the operation and the resource composition, after the configuration completes, its data is an XML, uses the data Services and Resource Language (DSRL) to generate.
4.2. DataSource (data source)
4.3. Query (Inquiry)
Configure query statements under the data source, and can specify parameters, set query result data XML results or JSON results, etc.
4.4. Operation (Operation)
An operation is an interface method provided by the DSS service that can set parameters, which are corresponding to the configured query, and one operation to configure a query.
Operation refers to a WEB service operation defined by a query. The operation is defined as an invocation of a query indicating how the parameters of the query are computed or derived.
4.5. Resources (data source) 4.6. Event trigger (data source) 4.7. Security configuration (Privilege config) 4.8. scheduling Tasks (Dispatch Task)
Dispatches the operation of the service within the set time. When the event is triggered, the event triggers the execution of the task, for example, when an operation is called, the system sends an e-mail operation;
Org.wso2.carbon.dataservices.task. Datatask Extensible
4.9. Namespaces (namespace)
A unique identifier for a service;
5. Three different ways
WSO2 DSS provides three ways to expose data services by exposing data to services and decoupling data from its storage form
5.1. Configure the Data service file
Like the file in the example
D:\temp\wso2dss-3.5.0\repository\deployment\server\dataservices\samples\RDBMSSample.dbs
After the file is successfully created, it is uploaded to the system via the console
5.2. Automatically generated through the schema
1: In the datasources of configure, configure the data source;
2: Operation generated in the data service– "generate" of main;
as follows, 2 tables are selected, and each table generates a service
Each service has the following query, the last one is based on the ID query.
There should be 5 actions, such as
5.3. User interface via the console
In the console main-"Data service-" Create, follow the instructions of the interface.
In the configuration interface, each selection parameter is described in detail in the documentation and can be consulted when used.
6. Admin Management 6.1. Set user Permissions
6.2. Features
Configure->features management in the console;
The bundle of dependencies is managed in this uniform;
6.3. Monitoring DSS
Log and System statistics
The entire life cycle of the service is tracked, in addition to the definition.
Process configuration, with corresponding classes handled in each configuration
As in flow
6.4. Transports
Carbon is the base platform for WSO2 products. He is based on the OSGi specification and implements the main functions of the SOA framework.
In the configuration file, configure various transports
D:\temp\wso2dss-3.5.0\repository\conf\axis2\ Axis2.xml
6.5. Registry
6.6. Axis2 Model
AXIS2 provides an extension of the model,
Http://axis.apache.org/axis2/java/core/docs/Axis2ArchitectureGuide.html
- The creation format is the model of the AXIS2 specification for. Mar;
- Uploading modules in the console main->modules->add;
6.7. Composite Applications (C-app)
- The creation format is the application of the. car in accordance with the C-APP specification;
- Upload application in the console Main->carbon Applications->add;
6.8. Cluster deployment
Load Balancing;
The cluster configuration is described in the following links
Https://docs.wso2.com/display/CLUSTER420/WSO2+Clustering+and+Deployment+Guide
6.9. DSS Migration
Services that exist on a historical service can be packaged into C-app and re-deployed on new services.
7. Source code
Https://docs.wso2.com/display/Carbon441/Working+with+the+Source+Code
WSO2 DSS source on GitHub;
Detailed reference document Carbon447-030816-1956-34408.pdf;
8. Tools8.1. Testing WSDLs
On the Service Configuration page, test the WSDL service through try it;
8.2. wsdl2java8.3. JAVA2WSDL 8.4. Validating wsdl8.5. JavaScript scraping assistant8.6. DataBase Explorer8.7. Tools of the Carbon Platform
9. JavaDoc
Https://svn.wso2.org/repos/wso2/scratch/DSS/3.5.0/RC2/javaDocs/index.html
Ten. SVN path
https://svn.wso2.org/repos/wso2/
WSO2-DSS First Article