About Me

About Me
Working with SOA technologies , implementing solution using IBM BPM , IBM Integration Designer,IBM WODM and IBM DataPower

About me

View Mahesh Dondeti's profile on LinkedIn

upcoming posts on IBM Bluemix,Devops,Worklight,Node js.

Friday 11 October 2013

Creating Simple XMLFirewall (loopback) in DatapowerXI50



Hello friends,I would like to share the simple scenario which I had done in XI50 few days back



Scenario:-


This scenario aims to saying the greetings to user.For example if  I send user as ‘Mahesh ‘ its has to say’HelloMahesh’.

Note:-Both request and response in XML format



What is and XmlFirewall?



The XML Firewall is designed to process generic XML requests and responses transmitted over HTTP or HTTPS. The XML Firewall uses a single protocol and contains one processing policy with a set of request, response, two-way, and error rules. Its configuration defines the listening IP address-port pair as well as general Threat  protection.


Loopback service:-


XML Firewall is to define the configuration as a loopback service. As a loopback service, the remote server is undefined. In this case, the service itself generates a response to the client after processing the request. This functionality is useful when developing, testing, and debugging a service when the remote server is

Unavailable.



Configuring Service:-




As shown in above figure select the firewall type as Loopback and give port  and request type as XML



Creating Both direction  Rule:-



As it is a loop back  I had  put rule direction as both  and used the transform action(as per scenario need to transform input message XML).


Used  “hellouser.xsl” file  in transform activity  to transform the request.

Hellouser.xsl:-

 <?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="/Test">
  <UserStatus>Hello
  <xsl:value-of select="user"/>
  </UserStatus>
  </xsl:template>
</xsl:stylesheet>


Testing the service:-

For testing the service I am using  SoapUI tool.





I hope this helps for . So far this is my best effort to explain.Please share your  valuable suggestions and feedback to my mail id"mdondetisbit@gmail.com" to improve my self.

Please correct me if I any do anything wrong.

Please post any issues/querys related to BPM,WODM and DATAPOWER  to "mdondetisbit@gmail.com"
 

1 comment:

  1. Congratulation for the great post. Those who come to read your Information will find lots of helpful and informative tips. Key Performance Indicators Sample for Cloud BPM

    ReplyDelete