Introduction

Hello, As a BizTalk Developer in Cloud, most of the time we are interested in type of the messages we deal, transforming one message into another and formatting the elements in the message. How to do it in LogicApp ? The answer is “Integration Account”. Using Integration Account, we could load or create Schemas and Maps in Azure so that using Schemas we could validate an message from On-premise/cloud and Transform them using Maps.

Scenario

We are going to see the new feature in Azure Logic App called “Integration Account” that contains our Maps and Schemas. I am going create a logic app which takes a http request, transform it to another format and return the same as a http response.

Steps

  1. Once your login is successful to the azure portal you create one “Integration Account” as below.

    1

  2. Click Create Button.

    Fill in the below details to create one.

    2

  3. Click Create Button

    Once it is successfully deployed, you could see it in the portal-> all resources->Integration Account

    3

  4. Now start adding schemas and Maps(xslt for now, not actual BizTalk Maps

55. Add Maps

6.PNG

6. Set Integration Account for the Logic App that you are developing, so that your Schemas and Maps would be visible to your Logic App.

7.PNG

7. The Logic App looks like below, it has a Transform XML shape that loads all the Maps available in the “Integration Account”. If the Integration Account hasn't been set then no maps will be visible.

9

8. This Logic App accepts a http request and using “Transform XML” shape it converts into another XML type. The XSL file looks very simple like the below.

<?xml version=”1.0″ encoding=”utf-8″?>

<xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221;

xmlns:msxsl=”urn:schemas-microsoft-com:xslt” exclude-result-prefixes=”msxsl”

>

<xsl:output method=”xml” indent=”yes”/>

<xsl:template match=”/”>

<ns0:GetCountries xmlns:ns0=”http://www.webserviceX.NET&#8221; />

</xsl:template>

</xsl:stylesheet>

9. The above xslt generates the empty GetCountriesMessage(yellow highlighted), If we trigger the message from fiddler it returns the Transformed XML

CallWS.PNG

10. You could verify your work flow instance in the portal as follows

 

Other languages