• Share
  • ?
  • Profiles ▼
  • Communities ▼
  • Apps ▼

Blogs

  • My Blogs
  • Public Blogs
  • My Updates

This community can have members from outside your organization. HermannSW

  • Log in to participate

▼ Tags

▼ Similar Entries

Howto: easy callout ...

Blog: HermannSW
HermannSW 2700006U54
Updated
0 people like thisLikes 0
No CommentsComments 0

Spectrum Protect アクテ...

Blog: ISE Storage B...
imakei 060000FEGN
Updated
0 people like thisLikes 0
No CommentsComments 0

DataPower as a REST ...

Blog: Me, myself an...
Offline 0600018ME9
Updated
1 people likes thisLikes 1
No CommentsComments 0

6.3.0-TIV-ITM_LFA-FP...

Blog: Application P...
GregorK 2700013SN6
Updated
2 people like thisLikes 2
No CommentsComments 0

Understanding the NF...

Blog: Application I...
Aidan Harbison 310000JE0Y
Updated
4 people like thisLikes 4
No CommentsComments 0

▼ Archive

  • March 2018
  • November 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • October 2016
  • May 2016
  • April 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011

▼ Blog Authors

HermannSW

View All Entries
Clicking the button causes a full page refresh. The user could go to the "Entry list" region to view the new content.) Entry list

Debugging binary transaction data

HermannSW 2700006U54 | | Tags:  non-xml datapower xslt log binary dump-nodes temporary: ‎ | 8,629 Views
Somtimes you may want to know what "binary" or Non-XML data is in INPUT context or at any other context in a flow.
 
This posting contained utility dump-nodes.xsl which allowed to dump the (binary) data base64 encoded into a temporary: folder file:
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14767585#14767585
 
Today's developerWorks DataPower forum thread "how to Capture Binary data in a file or log?" asked to get the data into the log instead:
https://www.ibm.com/developerworks/forums/thread.jspa?threadID=453420
 
That is fine for small messages, see technote
"DataPower log event message truncated when using xsl:message to output a custom log message"
http://www-01.ibm.com/support/docview.wss?uid=swg21447824
 
To be able to directly "read" the binary data logged and my "brain-base64-decoder" not being that good stylesheet
log-binary.xsl logs the binary data hexadecimally encoded (50% message length increase compared to base64-encoded).
See this little demonstration:
$ echo -n "test" | coproc2 log-binary.xsl - http://dp3-l3:2224 -s | od -tcx1
0000000   t   e   s   t
         74  65  73  74
0000004
$
 
This is the log entry from my box "dp3-l3.boeblingen.de.ibm.com":
06:25:01xsltmsgerror   1496416request9.164.179.2400x80000001mpgw (coproc2nonxml): 74657374








 
And this is stylesheet log-binary.xsl which returns the (binary) input unchanged, allowing to plug this in wherever needed:

 
 
Hermann<myXsltBlog/> <myXsltTweets/>
  • Add a Comment Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry
Notify Other People
notification

Send Email Notification

+

Quarantine this entry

deleteEntry
duplicateEntry

Mark as Duplicate

  • Previous Entry
  • Main
  • Next Entry
Feed for Blog Entries | Feed for Blog Comments | Feed for Comments for this Entry