Topic
  • 4 replies
  • Latest Post - ‏2013-11-04T09:34:39Z by Ronenbe
Ronenbe
Ronenbe
24 Posts

Pinned topic Binary data processing on XS40

‏2013-10-31T14:45:54Z | binary transform

Hi 

I am using SOMA for for exporting domain. objects

DataPower response to a XML management do-export request is a XML file containing the export as base64 string

DataPower have problem decoding the base64 string

I succesfully used  decoding solution using dec.xsl as suggested in this developerWorks DataPower Forum

https://www.ibm.com/developerworks/community/blogs/HermannSW/entry/decoding_the_base64_dp_file_data_retrieved_by_xml_management_do_export_request17?lang=en

 

This solution is not supported in XS40.

What is the binary data  decoding solution for XS40?

 

Regards

Ronen 

 

  • HermannSW
    HermannSW
    6950 Posts

    Re: Binary data processing on XS40

    ‏2013-11-01T17:35:17Z  

    Hi,

    the XS40 does NOT support binary data processing.

    But there is a workaround to do binary data processing on a XS40 via the attachment interface:
    https://www.ibm.com/developerworks/community/blogs/HermannSW/entry/binary_data_processing_without_dataglue_license6

    (I really like the flow&state diagram from that posting!)
     

    I am not sure what your problem is, DataPower should be able to import a file exported via XML management interface.

    Why don't you take the "sed" or "perl" solution from the posting you referred to?


    Hermann<myXsltBlog/> <myXsltTweets/> <myCE/>

     

     

  • Ronenbe
    Ronenbe
    24 Posts

    Re: Binary data processing on XS40

    ‏2013-11-03T10:26:47Z  
    • HermannSW
    • ‏2013-11-01T17:35:17Z

    Hi,

    the XS40 does NOT support binary data processing.

    But there is a workaround to do binary data processing on a XS40 via the attachment interface:
    https://www.ibm.com/developerworks/community/blogs/HermannSW/entry/binary_data_processing_without_dataglue_license6

    (I really like the flow&state diagram from that posting!)
     

    I am not sure what your problem is, DataPower should be able to import a file exported via XML management interface.

    Why don't you take the "sed" or "perl" solution from the posting you referred to?


    Hermann<myXsltBlog/> <myXsltTweets/> <myCE/>

     

     

    Hi Hermann

     

    My problem is decoding the xml file imported via XML managment on XS40

    Decoding the base64 file using dp:decode  function returns unformated xml:  '&lt;' instead of  '<'

    for example:

    &lt;datapower-configuration version="3">&lt;export-details>&lt;description>Exported Configuration &lt;/description>&lt;user>soma&lt;/user>&lt;domain>OFEK_PRD&lt;/domain>&lt;comment/>.....

     

    What is the solution for this problem on XS40??

     

    Regards

    Ronen

     

     

  • HermannSW
    HermannSW
    6950 Posts

    Re: Binary data processing on XS40

    ‏2013-11-03T20:43:35Z  
    • Ronenbe
    • ‏2013-11-03T10:26:47Z

    Hi Hermann

     

    My problem is decoding the xml file imported via XML managment on XS40

    Decoding the base64 file using dp:decode  function returns unformated xml:  '&lt;' instead of  '<'

    for example:

    &lt;datapower-configuration version="3">&lt;export-details>&lt;description>Exported Configuration &lt;/description>&lt;user>soma&lt;/user>&lt;domain>OFEK_PRD&lt;/domain>&lt;comment/>.....

     

    What is the solution for this problem on XS40??

     

    Regards

    Ronen

     

     

    Hi,

    dp:decode(_, 'base-64') results in serialized XML as you did show above.

    You can get XML from a serialized XML string by dp:parse(_).


    Hermann<myXsltBlog/> <myXsltTweets/> <myCE/>
     

  • Ronenbe
    Ronenbe
    24 Posts

    Re: Binary data processing on XS40

    ‏2013-11-04T09:34:39Z  
    • HermannSW
    • ‏2013-11-03T20:43:35Z

    Hi,

    dp:decode(_, 'base-64') results in serialized XML as you did show above.

    You can get XML from a serialized XML string by dp:parse(_).


    Hermann<myXsltBlog/> <myXsltTweets/> <myCE/>
     

    It works great

    Thanks

     

     

    Regards

    Ronen