如何發送字符串內容作為來自 WSO2 ESB 代理的響應? (How to send string content as the response from WSO2 ESB Proxy?)


問題描述

如何發送字符串內容作為來自 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 SembiyanJean‑Michel)

參考文件

  1. How to send string content as the response from WSO2 ESB Proxy? (CC BY‑SA 2.5/3.0/4.0)

#wso2-esb #synapse #xquery #wso2 #axis2






相關問題

WSO2 Carbon 管理控制台異常 (WSO2 Carbon Management Console Exception)

WSO2 ESB 中介序列與代理服務 (WSO2 ESB Mediation Sequence vs Proxy Service)

帶有 XPath 擴展的 WSO2 Developer Studio (WSO2 Developer Studio with XPath extensions)

我們可以使用 wso2esb Jms 消費消息嗎 (Can we Consume the Messages using wso2esb Jms)

使用 WSO2 peoplehr 連接器時出錯 (Error using WSO2 peoplehr connector)

在路徑中找不到 WSO2ESB 自定義中介 Java 類 (WSO2ESB Custom Mediator Java Class is not found in the path)

WSO2 豐富陣列 (WSO2 Enrich array)

wso2代理服務出錯 (Error in wso2 proxy service)

如何豐富 OM 屬性中的節點值? (How to enrich a node value in OM property?)

如何發送字符串內容作為來自 WSO2 ESB 代理的響應? (How to send string content as the response from WSO2 ESB Proxy?)

wso2-esb 集群後,每個 carbon 控制台(管理和工作人員)都不工作 (wso2-esb After clustering, every carbon console(management and worker) doesn't work)

WSO2 ESB:如何處理端點返回的內部錯誤 (WSO2 ESB: How to handle internal error returned by an endpoint)







留言討論