3
我們有一個非常簡單的WS,使用註釋實現。我們希望能夠從支持MTOM/XOP而不是客戶端調用這個。 現在,它只是在@MTOM註釋。MTOM請求/非MTOM響應
它接受一個包含(除其他之外)base64Binary元素的請求,並提供包含單個布爾元素的響應。
調用它是沒有問題的,無論我們沒有MTOM - 它的工作原理。只有響應,即使它沒有包含任何MTOM:能夠使用的元素,也會有標題聲明它是一個MTOM消息,它會扼殺非MTOM客戶端。
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:user-header name="X-Powered-By" value="Servlet/2.5 JSP/2.1"/>
<http:Content-Type>
multipart/related;start="<rootpart*[email protected]>";type="application/xop+xml";boundary="uuid:c3e56707-113c-47f9-b02c-2a3234766dc4";start-info="text/xml"
</http:Content-Type>
<http:Date>Tue, 11 May 2010 07:27:51 GMT</http:Date>
<http:Transfer-Encoding>chunked</http:Transfer-Encoding>
</tran:headers>
有誰知道如何讓服務始終以非MTOM響應迴應,同時仍接受MTOM和非MTOM請求?
該服務在WebLogic 10.3服務器上運行...
親切的問候, 拉爾斯
得到任何有關這個問題的答案? – 2010-07-27 01:18:34