問題描述
如何發送字符串內容作為來自 WSO2 ESB 代理的響應? (How to send string content as the response from WSO2 ESB Proxy?)
amp;Data2),ESB 無法識別該格式。</p>
它可以實現嗎?
如果問題需要澄清,請發表評論。提前致謝。
參考解法
方法 1:
When you want to send text content with WSO2 ESB, you must create a SOAP Message with the text content as the value for a node <text xmlns="http://ws.apache.org/commons/ns/payload">
in your soap body
Define the messageType so that the ESB choose the appropriate message formatter :
<property name="messageType" value="text/plain" scope="axis2"/>
If there is xml content in your text, you must use a CDATA section
(by Prabakaran Thodithot Sembiyan、Jean‑Michel)