Topic
  • 1 reply
  • Latest Post - ‏2012-11-05T12:28:46Z by HermannSW
devSakthi
devSakthi
23 Posts

Pinned topic How to retrieve the .dpa out value

‏2012-11-03T10:16:21Z |
Hi,

I have DPA file to convert my xml into copyBook transformation. I m storing dpa transformed output into auto(dp_var1) variable, i have to use this string in subsequent xslt. How can I retrieve this value, if i pass this value (dp_var1) into next xslt, i will get error as it is a binary value not a xml.

Thanks in advance.
Updated on 2012-11-05T12:28:46Z at 2012-11-05T12:28:46Z by HermannSW
  • HermannSW
    HermannSW
    4722 Posts

    Re: How to retrieve the .dpa out value

    ‏2012-11-05T12:28:46Z  
    Hi,
    >
    > I have DPA file to convert my xml into copyBook transformation.
    > I m storing dpa transformed output into auto(dp_var1) variable, i have to use this string in subsequent xslt.
    > How can I retrieve this value, if i pass this value (dp_var1) into next xslt, i will get error as it is a binary value not a xml.
    >
    if your result is just a "string", then it is not XML.
    And a "normal" stylesheet needs XML as input.

    I just tested with a .dpa file that base64 encodes (binary) input and wraps the output into <base64> element.
    Having the Transform Binary action output to PIPE context, and a Transform action with INPUT context PIPE (and transform store:///identity.xsl) works fine:
    
    $ curl --data-bin 
    "test" http:
    //dp3-l3:12080 ; echo <?xml version=
    "1.0" encoding=
    "UTF-8"?> <base64>dGVzdA== </base64> $
    


    You can process Non-XML in a DataPower stylesheet.
    Find the basics and advanced topics in these WSTE webcast ("hear into" for details, samples attached):
    http://www-01.ibm.com/support/docview.wss?uid=swg27022977
    http://www-01.ibm.com/support/docview.wss?uid=swg27022979

     
    Hermann<myXsltBlog/> <myXsltTweets/>