Launch the DataPower console and create an XML firewall
service. Then create a style policy for the service.
- Switch to Appliances tab of the DataPower Appliance view.
- Select the appliance that you created earlier, right-click,
and select Launch Console.
- If you are prompted by a security alert, click Yes to proceed.
- At the WebSphere DataPower login prompt, provide a userid
and password and click Login. The WebSphere DataPower
console opens showing the control panel.
- Configure a pass thru XML firewall with the following properties:
Option |
Description |
Firewall Name |
SampleHelloWorldDataFirewall |
Firewall type |
loopback-proxy |
Request type |
XML Note: You may need to edit the XML Firewall after you
create it, in order to set the request type to XML.
|
The following image shows the configured XML firewall.
- Configure a style policy and a rule for the XML service.
Create a new rule with the direction Client to Server and the following actions in order from client to server: validate,
transform and validate.
- Configure the first Validate action
with the following properties:
Property |
Value |
Input |
INPUT |
Schema Validation Method |
Validate Document via schema URL |
Schema URL |
A path to the library that you uploaded to DataPower (for
example local:///anita); fullname.xsd. |
SOAP Validation |
body |
Asynchronous |
off |
- Configure the Transform action with the following properties:
Property |
Value |
Input |
auto |
Document Processing Instructions |
Use XSLT specified in this action |
Processing Control File |
A path to the library that you uploaded to DataPower (for
example local:///anita); fullname_map.xsl. |
URL Rewrite Policy |
none |
Asynchronous |
off |
Output |
auto |
- Configure the last Validate action with the following properties:
Property |
Value |
Input |
auto |
Document Processing Instructions |
Validate Document via schema URL |
Processing Control File |
A path to the library that you uploaded to DataPower (for
example local:///anita); title_firstname_lastname.xsd. |
SOAP Validation |
Body |
Asynchronous |
off |
Output |
OUTPUT |
- Apply the policy.
- Verify that the policy and the firewall are up and running.