Difference between revisions of "GetAnagrafica ws bottom-up method"
G.iannello (talk | contribs) m (→SERVICE SECTION) |
(→SYSTEM SECTION) |
||
Line 4: | Line 4: | ||
The first image shows how create an operation system section. | The first image shows how create an operation system section. | ||
In the tag system define a new Channel "CH_DB" and add a [[db-call]] operation, in [[db-call]] operation set the parameters for the Element DBOoperation, Statement and ResultSet: | In the tag system define a new Channel "CH_DB" and add a [[db-call]] operation, in [[db-call]] operation set the parameters for the Element DBOoperation, Statement and ResultSet: | ||
− | *[[ | + | *[[DBOperations]]-->[[DBOperations|DataSourceConnection]] |
**jndi-name: insert the name of jndi DataSource in this example ds.anagrafica | **jndi-name: insert the name of jndi DataSource in this example ds.anagrafica | ||
*Statement | *Statement | ||
**StatementValue: in this field insert the following query "select cognome,nome,citta from anagrafica" | **StatementValue: in this field insert the following query "select cognome,nome,citta from anagrafica" | ||
− | *[[ResultSet]]-->[[ | + | *[[ResultSet]]-->[[Formatter|QueryFormatter]] |
**type: choose base_formatter | **type: choose base_formatter | ||
**structure: ONLY_DATA, remember if you don't want also metadata form query select for filed structure the value ONLY_DATA | **structure: ONLY_DATA, remember if you don't want also metadata form query select for filed structure the value ONLY_DATA |
Revision as of 13:46, 13 February 2012
We start from a GreenVulcano® ESB service "getAnagrafica" that simply returns the anagrafica presents in table Anagrafica.
SYSTEM SECTION
The first image shows how create an operation system section. In the tag system define a new Channel "CH_DB" and add a db-call operation, in db-call operation set the parameters for the Element DBOoperation, Statement and ResultSet:
- DBOperations-->DataSourceConnection
- jndi-name: insert the name of jndi DataSource in this example ds.anagrafica
- Statement
- StatementValue: in this field insert the following query "select cognome,nome,citta from anagrafica"
- ResultSet-->QueryFormatter
- type: choose base_formatter
- structure: ONLY_DATA, remember if you don't want also metadata form query select for filed structure the value ONLY_DATA
The system section has been configured
SERVICE SECTION
This section shows the getAnagrafica service configuration. On the elements Service add a service with name "getAnagrafica"