| By Asim Saddal | Article Rating: |
|
| September 29, 2012 11:00 AM EDT | Reads: |
4,198 |
The purpose of this article is to describe the steps involved in configuring Datapower services for the browser-based HTTP type requests. The commonly used methods for such requests are either the POST or GET HTTP method.
Datapower Configurations
1. For the testing purpose create a loopback pass-through XML Firewall.
2. Create a new Multi-Protocol Gateway with the following values
|
Input |
Values |
|
Name |
HTTPBrowserMPGW |
|
Type |
static-backend |
|
Response Type |
Non-XML |
|
Request Type |
Non-XML |
|
Backend URL |
<to the loopback XMLFirewall> |

3. Create a HTTP Front side handler with the following values
|
Input |
Values |
|
Name |
HTTPBrowserFSH |
|
Local IP Address |
<setup on one of the Ethernet Interface> |
|
Port |
81 |
|
Allow Methods and Version |
GET (and all the other default values) |

4. At the Multi-Protocol Gateway screen, click on the "Advance" tab menu and click on "Process Messages Whose Body Is Empty"
![]()
5. Click on Apply.
6. Create the httpReqType.xslt file and type the following. Upload the file on the Datapower
|
<xsl:stylesheet xmlns:dp="http://www.datapower.com/extensions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" extension-element-prefixes="dp" exclude-result-prefixes="dp" version="1.1"> <xsl:variable name="reqType" select="dp:variable('var://service/protocol-method')"/> <xsl:template match="/"> <html><body> <p>HTTP request submitted using <b><xsl:copy-of select="$reqType" /> </b> method. </p> </body></html> </xsl:template> </xsl:stylesheet> |
7. On HTTPBrowserMPGW, create a new Policy and named it "HTTPBrowserPolicy"
8. Create a new "Client to Server" rule and configure Match action icon for "* " for URL (match all)
9. Assign a "Convert Query Params to XML" action to the rule (convert-http action)
10. Click "Apply Policy"

11. Create another "Server to Client" rule and configure Match action icon for "* " for URL (match all)
12. Assign a "Transform" action to the rule and assign the "httpReqType.xslt" file.

13. Click "Apply Policy" and then "Close Window". Click on "Apply" at the Multi-Protocol Gateway screen
Published September 29, 2012 Reads 4,198
Copyright © 2012 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Asim Saddal
Asim Saddal works in the Middleware (WebSphere Application Server, WebSphere Datapower, WebSphere Process Server, WebSphere VE) practice of IBM Software Services for WebSphere.
- Cloud People: A Who's Who of Cloud Computing
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- CollabNet And UC4 Announce General Availability Of Joint Enterprise DevOps Platform
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- The Software Freedom Conservancy – Fundraising Campaign: Non-Profit Accounting Software
- Project Floodlight Grows to the World’s Largest SDN Ecosystem; Global Users, Contributors and Partners Innovating Using Open Source SDN
- Mobility News Weekly – Week of March 17, 2013
- Midokura Announces General Availability of Disruptive Network Virtualization Technology
- Remote Controlling a Car over the Web. Ingredients: Smartphone, WebSocket, and Raspberry Pi.
- Social Business Intelligence Book Industry’s First Executive SBI Guide
- The Linux Foundation’s Collaboration – OpenDaylight Project – Open Source SDN
- Cloud People: A Who's Who of Cloud Computing
- SUSE Receives Common Criteria Security Certifications
- Basho Announces Open Source Riak CS and General Availability of Riak CS Enterprise v1.3
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- CollabNet And UC4 Announce General Availability Of Joint Enterprise DevOps Platform
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- The Software Freedom Conservancy – Fundraising Campaign: Non-Profit Accounting Software
- Project Floodlight Grows to the World’s Largest SDN Ecosystem; Global Users, Contributors and Partners Innovating Using Open Source SDN
- Antenna to "Myth-Bust" Common Mobile App Development Misconceptions in Upcoming Webinar
- Mobility News Weekly – Week of March 17, 2013
- Global Information Security Products And Services Industry
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- The i-Technology Right Stuff
- Creating Web Applications with the Eclipse Web Tools Project
- Eclipse Special: Remote Debugging Tomcat & JBoss Apps with Eclipse
- Where Are RIA Technologies Headed in 2008?
- The Next Programming Models, RIAs and Composite Applications
- SYS-CON Webcast: Eclipse IDE for Students, Useful Eclipse Tips & Tricks
- How to Bring Eclipse 3.1, J2SE 5.0, and Tomcat 5.0 Together
- Eclipse: The Story of Web Tools Platform 0.7
- The Top 250 Players in the Cloud Computing Ecosystem
- "Eclipse 3.0 is a Great Leap Forward," Says JDJ's Dudney
- Developing an Eclipse BIRT Report Item Extension
























