Binary data to text/string in XQuery

﹥>﹥吖頭↗ 提交于 2019-12-08 13:16:46

问题


When xml converted through MFL(Message Format Language) from xml to binary, it comes as following in logs of Oracle Service Bus.

<soap-env:Body xmlns:soap-env = 
    "http://schemas.xmlsoap.org/soap/envelope/">
  <ctx:binary-content 
    ref="cid:69b63814:144d49f1544:-6cba" 
    xmlns:ctx="http://www.bea.com/wli/sb/context"/>  
</soap-env:Body> 

Can any body tell me how to print this log in text/string in Xquery or OSB. Is there any function or method of xquery i can use ?


回答1:


Used java Call out to convert this .




回答2:


For converting binary encoded strings, BaseX has the XQuery function

convert:binary-to-string($binstring)

Works nicely in conjunction with output from http-requests.



来源:https://stackoverflow.com/questions/22609203/binary-data-to-text-string-in-xquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!