MAIN arrow Samples-5.1 arrow Handling XML File Using AXIS2

Handling XML File Using AXIS2

Print E-mail


zip handlexmlfile 07/04/2008,05:36 50.49 Kb

 

Description:

This use case illustrates functionality of reading an XML file. The process has been implemented by creating a wsdl that reads the XML file available and displays the result .The WSDL file "FileProcessServiceWS.wsdl" is generated from "Axis2" Application Server which reads the data from xml file and displays result.

 

Use case dependencies:

Message.xsd: schema used is “result” which is of string type.

 

Configuration:

Copy and paste the “Employee.xml” file under [intalio-bpms-server-5.1.1]\bin.

 

Requirements

  1. Intalio|BPMS Server-5.1.1
  2. Intalio|BPMS Designer-5.1.1
  3. Employee.xml.
  4. FileProcessServiceWS.aar
  5. FileProcessServiceWS.wsdl

 

 

Preconditions:

1. Make sure Intalio|BPMS Server is up and running fine.
2. Make sure the Process Explorer pane does not contain any Intalio|BPMS Business Process Project with same name.

 

Process Download & Import:

1. Download "HandlingXMLFile.zip".
2. Go to File > Import...
3. In Import wizard, select 'Existing Projects into Workspace', click on Next >

4. Select the "Select archive file" radio button.

5. Browse to select the downloaded archive file.
6. Click to Finish.
7. Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.

 

Explanation of the files used:

1. HandlingXMLFile.bpm: bpm file created for this purpose.
2. FileProcessServiceWS.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.
3. FileProcessServiceWS.wsdl: This is the wsdl that is required to be invoking in the process.

hanlingxmlfile.jpg

Work Scenario in the Axis 2:

To upload "FileProcessServiceWS.aar" in the Axis2:

1. Make sure Intalio-bpms server is already started.
2. Open a web browser, provide URL as: “http://localhost:8080/axis2/”.

3. Click on the "Administration" link.
4. Login with the following credentials:
username: "admin" (without quotes).
Password: "axis2" (without quotes).
5. Click on link to "Upload Service" to upload.
6. Browse to location of "FileHandlingServiceWS.aar", click on Upload button.
7. Now click on Available Services link and refresh the webpage.
Note: You will see the list of the available services.
8. Verify that "FileProcessServiceWS" link is present there.
9. Click on "FileProcessServiceWS" link it displays respective wsdl file.
Note: This wsdl displays users Ip address in place of localhost in soap address location.you need to save this wsdl file on your system and you need to use in place of existing wsdl.

 

Process Deployment & Execution:

1. Click on Deploy Project to Intalio|BPMS Server button in tool bar.
2. Make sure you select all runtime files while exporting to Intalio|BPMS Server.
3. Click on Finish button.
4. Open a web browser, provide URL as: http://localhost:8080/bpms-console which takes to login screen for bpms-console.
5. Login with the following credentials:
username: 'admin' (without quotes).
password: 'changeit' (without quotes).

6. Bpms-console will be available with deployed processes list.

7. You should see "HandlingXMLFile:Server" process with a package name "HandlingXMLFileUsingAxis2", select it and click to Start.
8. A form generates with an input field to map input data.
9. Don’t type anything in the input field, then click on Submit button.
9. This will replace the page with employee’s details as an output.

Last Updated ( Apr 07 2008 )
  < Prev Next >