2014-03-24 6 views
0

xml에서 MFL (Message Format Language)을 통해 xml을 이진으로 변환하면 Oracle Service Bus의 로그에서 다음과 같이 나타납니다.XQuery의 이진 데이터와 텍스트/문자열

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

Xquery 또는 OSB에서이 로그를 텍스트/문자열로 인쇄하는 방법을 알려줄 수 있습니까? xquery에 사용할 수있는 함수 나 메소드가 있습니까?

답변

0

사용 된 자바 이것을 변환하려면 전화를 겁니다. 이진 코드 문자열 변환

+0

사용 예제를 줄 수 있습니까? 나는 네가 무엇을 제안하는지 이해하지 못한다. –

+0

OSB에서 자바 콜 아웃으로 다음과 같은 메소드를 사용했습니다. public static String Decode (Object encodedDataRef) throws Exception \t { \t \t byte [] bytes = (byte []) encodedDataRef; \t \t \t 문자열 decodedData = 새로운 문자열 (바이트); \t \t \t // \t System.out.println ("DecodedData ="+ decodedData); \t \t \t \t return decodedData; \t} –

0

는 BaseX는

convert:binary-to-string($binstring) 

는 HTTP 요청 - 출력과 함께 훌륭하게 작동 XQuery 함수를 갖는다.