Binary data to text/string in XQuery

2019-06-14 04:47发布

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 ?

2条回答
祖国的老花朵
2楼-- · 2019-06-14 05:01

Used java Call out to convert this .

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-06-14 05:12

For converting binary encoded strings, BaseX has the XQuery function

convert:binary-to-string($binstring)

Works nicely in conjunction with output from http-requests.

查看更多
登录 后发表回答