问题
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