











Signup for Training
- Atlanta, GA Dec 3-5
- Melbourne, AU, Dec 9-11
- New York Dec 10-12
- Brussels, BE, Dec 16-18
- Washington, DC, Dec 17-19
More trainings...
Intalio|BPMS Webinars
- Nov 20, 2008 1 PM EST
- Nov 21, 2008 1PM EST
- Nov 26, 2008 10 AM GMT
- Dec 5, 2008 10 AM PST
- Dec 9, 2008 1 PM EST
- Dec 11, 2008 1 PM EST
- Dec 19, 2008 10 AM PST
- Dec 30, 2008 10 AM PST
- Jan 13, 2009 10 AM PST
- Jan 15, 2009 1 PM EST
- Feb 3, 2009 10 AM PST
- Feb 12, 2009 1 PM EST
- Feb 17, 2009 10 AM PST
- Mar 10, 2009 10 AM PST
- Mar 12, 2009 1 PM EST
- Mar 24, 2009 10 AM PST
Login
Who's online?
- (jloge@ebsco.com)
- Alexander Stuckenholz (alexander.stuckenholz)
- alfons bataller Díaz (alfons.bataller.diaz)
- Antoine Toulme (Antoine)
- areeporn phuangsiri (areeporn.phuangsiri)
- chris robson (chris.robson)
- Deepa Tekumalla (deepa.tekumalla)
- Gabriel Giordano (gabriel.giordano)
- gianni naccio (gianni.naccio)
- Ilo Rivero (ilo.rivero)
- Jose Gregorio Castillo (jose.gregorio.castillo)
- Leonardo Lopes (leonardo.lopes)
- Leonardo Saraiva (leonardo.saraiva)
- manindra mallick (manindra.mallick)
- Marcin Urbanski (marcin.urbanski)
- Milos Vacek (milos.vacek)
- nie pin (nie.pin)
- Pavel Lekhanov (lehanov)
- Ravinderjit Singh (ravinderjit.singh)
- sharma jampani (sharma.jampani)
- Tamara Dobrynina (tamara.dobrynina)
MAIN
Samples-5.1
Retrieving Records from Database using Axis2
Samples-5.1
Retrieving Records from Database using Axis2 Retrieving Records from Database using Axis2
on Jul 09 2007
Last Updated ( Jan 03 2008 )
< Prev
Next >
retrievingrecords 03/01/2008,04:11 53.60 Kb
Description:
The sample implements a scenario in which user can execute a simple SQL query directly from the bpms console like "select * from book" and output will be displayed accordingly. Here, book is the name of the table from where the values will be fetched.
The WSDL file "JdbcWsdlServiceWS.wsdl" is generated from the "Axis2". The process accepts the input as an SQL query, "select * from book", then it fetches the records from the database "book" and displays the list of the records available in database.
Use case dependencies:
database.xsd: Schema used is of "complex" type.
Requirements:
- Intalio|BPMS Server-5.0
- Intalio|BPMS Designer-5.0
- RetrievingRecords.bpm (bpm file created for this project).
- JdbcConnection1.txt
- book.mdb
Preconditions:
-
Make sure Intalio|BPMS Server is up and running fine.
-
Make sure the Process Explorer pane does not contain any Intalio|BPMS Business Process Project with same name.
Process Download & Import:
- Download "RetrievingRecords.zip".
- Go to File > Import...
- Select 'Existing Projects into Workspace', in the wizard, click on Next >
- Browse to select the downloaded archive file.
- Click to Finish.
- Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.
Work Scenario in the Axis 2:
To upload "JdbcWsdlServiceWS.aar" in the Axis2:
- Make sure Intalio-bpms server is already started.
- Open a web browser, provide url as: http://localhost:8080/axis2/., that takes to login screen for axis2.
- Click on the "Administration" link.
- Login with the following credentials:
username: "admin" (without quotes).
password: "axis2" (without quotes). - Click on the link to "Upload Service".
- Browse to location of "JdbcWsdlServiceWS.aar" to "Upload a AxisService Archive File " page.
- Now click on Available Services link and refresh the webpage
Note: You will see the list of the available services. - Verify that "JdbcWsdlServiceWS" link is present there.
- Click on "JdbcWsdlServiceWS" link it displays respective wsdl file.
Note: This wsdl displays users Ip address in place of localhost in soap address location.If you want you can save this wsdl file on your system and use in place of the existing wsdl.
Explanation of the files used:
- RetrievingRecords.bpm: bpm file created for this purpose.
- FileHandlingServiceWS.aar:This file is required to be uploaded in the server i.e. in http://localhost:8080/axis2 so that the service can be deployed.
- FileHandlingServiceWS.wsdl:This is the wsdl that is required to be invoke in the process.
- database.xsd: This is the schema that defines the data types required
- JdbcConnection1.txt: This is the configuration file where we have defined the dsn , username, password.
Note: Note: You need to paste the configuration file in [intalio-bpms-server]\bin folderand correspondingly change the configurations in this file according to your requirements. - book.mdb: The database file that contains records related to fields: Id and Price
Note: You need to create Data Source with name as "book" and also paste the attached book.mdb file in any of the drives
Process Deployment & Execution:
- Click on Deploy Project to Intalio|BPMS Server button in tool bar.
- Make sure you select all runtime files while exporting to Intalio|BPMS Server.
- Also verify & check "Deploy processes" choice before click on Finish button.
- Open a web browser, provide url as: http://localhost:8080/bpms-console which takes to login screen for bpms-console.
- Login with the following credentials:
username: 'admin' (without quotes).
password: 'changeit' (without quotes). - In the processes list you should see "RetrievingRecords:RetrievingRecords" process with a package name "RetrievingRecords", select it and click to Start.
- This should generate a form with an input field to map input data.
- Type 'select * from book' in "EvenStartMessageRequest"field then click on Submit button.
- This will replace the page with an output like:
EventStartMessageResponse:
getSelectedQueryResult:
Order:
Id: 1
Price: 23.0
Order:
Id: 2
Price: 50.0
Order:
Id: 3
Price: 45.0
