Topic
1 reply Latest Post - ‏2013-05-03T01:44:35Z by myESB
genxlogics
genxlogics
23 Posts
ACCEPTED ANSWER

Pinned topic EBCDIC CopyBook Transformation

‏2013-04-30T09:17:22Z |

Hi Hermann/All,

i am working on a service which does transform a SOAP messsage into copybook message (EBCDIC). i am using contivo to generate the ffd but i dont want to use contivo to create XSLs for me so i want to write my own XSL to transform incoming SOAP message to an XML conforming to FFD and then use <dp:output-mapping> for converting that XML to copybook format. i would really appreciate if someone could please explain me how do i start with. i am attaching the copybook here..if someone could please help me how FFD will help me to udnerstand that XML structure i need to write and how do i do it because contivo generated XSL is not to me liking. please please please...help me. i have also attached the cotnivo generated request/response FFD..and the input-out SOAP messages

flow is SOAP-->copybook (request)

copybook-->SOAP (response)

Attachments

  • myESB
    myESB
    10 Posts
    ACCEPTED ANSWER

    Re: EBCDIC CopyBook Transformation

    ‏2013-05-03T01:44:35Z  in response to genxlogics

    Create an intermediate simple XML with similar structure and same tag/field names defined in the FFD. Pass this as an input to your FFD with <dp:output-mapping href="<Your Request ffd Name>.ffd" />.

    For Ex: based on your request FFD, input to the FFD should looks like below:

     

    <?xml version="1.0"?>
    <requestHeader>
    <timestamp>value</timestamp>
    <traceId>value</traceId>
    <version>value</version>
    <eventCategory>value</eventCategory>
    <eventType>value</eventType>
    <businessSystem>value</businessSystem>
    <integrationServer>value</integrationServer>
    <contentType>value</contentType>
    <traceMessageId>value</traceMessageId>
    </requestHeader>

    Then XSL should be 

     

    <xsl:stylesheet version="1.0" extension-element-prefixes="dp xsl"
    exclude-result-prefixes="dp dpconfig xsl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:dp="http://www.datapower.com/extensions" xmlns:dpconfig="http://www.datapower.com/param/config">
    <dp:output-mapping href="<Give Your Request ffd Name>.ffd" />
    <xsl:template match="/">
    <xsl:copy-of
    select="." />
     
    </xsl:template>
    </xsl:stylesheet>

    This will parse your plan xml data to ebcdic.