| By Asim Saddal | Article Rating: |
|
| September 29, 2012 11:00 AM EDT | Reads: |
4,646 |
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,646
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
- Cloud Expo New York: Rethink IT and Reinvent Business with IBM SmartCloud
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- Commander of U.S. Cyber Command and National Security Agency Director, General Keith Alexander, To Keynote Day One of Black Hat USA 2013
- Cloud Business Solutions, Social Media, and Platform Systems of Engagement Market Shares, Strategies, and Forecasts, Worldwide, 2013 to 2019
- Cloud Expo New York: Security for Cloud Computing
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Cloud Expo | IBM & OpenStack Together: Accelerating Cloud Adoption & ROI
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Cloud Computing – The Perfect Match for Big Data
- Research and Markets: Global Platform-As-A-Service Market Expected To Post Revenue of US$6.45 Billion in 2016 According To Latest Report
- IBM Named “Diamond Sponsor” of Cloud Expo New York
- Cloud People: A Who's Who of Cloud Computing
- State and Local Governments Adopt Microsoft Dynamics CRM to Improve Citizen Service Delivery
- Cloud Expo New York: Rethink IT and Reinvent Business with IBM SmartCloud
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- ACI Worldwide Empowers Financial Institutions to Increase Efficiency of Card Issuing and Account Management
- Cimtrek announces the general release of its Lotus Notes migrator for Microsoft’s SharePoint platform
- Commander of U.S. Cyber Command and National Security Agency Director, General Keith Alexander, To Keynote Day One of Black Hat USA 2013
- Cloud Business Solutions, Social Media, and Platform Systems of Engagement Market Shares, Strategies, and Forecasts, Worldwide, 2013 to 2019
- Cloud Expo New York: Security for Cloud Computing
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Velocity Technology Solutions Introduces IBM Power Systems Universal Cloud Services at COMMON 2013
- AMAX Launches StorMax(TM) CFS, powered by IBM(R) General Parallel File System(TM) (GPFS(TM))
- Java vs C++ "Shootout" Revisited
- Where Are RIA Technologies Headed in 2008?
- WebSphere Application Server Java Dumps
- Unveiling the java.lang.Out OfMemoryError
- How To Deploy Scalable WebSphere Applications Using "Maven" Build Tool
- Breaking News: New Internal IBM Report Says "Another Flawed Study"
- Profiles for WebSphere Application Server 6.0
- Last Exclusive JDJ Interview With "IBM's" John A. Swainson, Now CA's Newly Appointed CEO
- Automated Deployment of Enterprise Application Updates
- Developing Java and Web Services Applications on Rational Application Developer V6
- Your Guide to Portal Clustering in WebSphere Portal Server 5.1
- How to Create a Simple Java J2ME Application for BlackBerry





















