Tuesday, October 29, 2013

Mobile Approvals using Integration Broker and DataPower ESB

Recently I was playing around with JDeveloper trying to build an mobile approval application to allow managers to approve AWE transactions via their mobile device.  That is when I had the idea to use Integration Broker to generate an XML document that would contain an HTML Document wrapped in a CDATA, then I could use a simple XLST on the response to remove the HTML document from the XML and send it to the manager's mobile device via DataPower.   DataPower would be utilized to get through our firewall and to change the content-type from xml/text to html/text.  Basically, I am using DataPower as a web server.  So you could also accomplish this same thing without DataPower, you could use a Apache web server with mods headers or even PHP could be used to change the headers.


       1.  Create simple Login Screen and place on external web server
 
     2.  Build one Synchronous Integration Broker Message with handler


     3. Create an “Any to Local” Routing and configure it to utilize XLST to transform the response from XML to HTML


        <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html" omit-xml-declaration="yes"/>

<xsl:template match="/">
<xsl:value-of select="/" disable-output-escaping="yes"/>
</xsl:template>

</xsl:stylesheet>
  4.  Use Enterprise Service Bus or external Web server to handle change HTTP header content from XML to HTML
  5.  Build WorkList table with transaction details and URL or button to Approval Pages.
 
 
  6. Build Transaction Specific Approval pages using HTML5 and CSS

This was the presentation I gave a couple of weeks ago at the KCRUG, in my next post I will attempt to go into more regarding the Integration Broker handler.

No comments:

Post a Comment