僅添加認證的簡單代理。標準化爲LF的WSO2 ESB代理CRLF
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="QueryTestProxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<property xmlns:ns="http://org.apache.synapse/xsd"
name="Authorization"
expression="fn:concat('Basic ', base64Encode(fn:concat('admin:', wso2:vault-lookup('QueryTest'))))"
scope="transport"
type="STRING"/>
<send>
<endpoint key="conf:/QueryTest"/>
</send>
</inSequence>
<faultSequence>
<send/>
</faultSequence>
</target>
<publishWSDL key="conf:/WSDL/QueryTest.wsdl"/>
<description/>
</proxy>
端點服務確實上的字段中的一個上CRLF分裂,也端點不能被修改而不能使用CDATA。
問題是,WSO2 ESB總是用LF替換CRLF,並且拆分不起作用,有誰知道阻止WSO2 ESB規範化消息的方法嗎?
我試過使用javascript mediator,它在該節點的文本中用CRLF替換LF,但是當發送消息時,它將用LF替換回來。 –