<message-properties-transformer scope="outbound">
<add-message-property key="username" value="admin" />
<add-message-property key="password" value="admin"/>
<add-message-property key="Accept" value="application/json"/>
</message-properties-transformer>
<logger message=" outbound header username and password...
#[message.outboundProperties['username']] and
#[message.outboundProperties['password']]"
level="INFO" doc:name="Logger"/>
<http:outbound-endpoint
exchange-pattern="request-response"
address="http://localhost:8080/callReservation"
method="POST"
contentType="application/json"
doc:name="HTTP"/>
在這裏,我無法通過標題值到http出境endpoint.any建議如何通過HTTP標頭值喜歡的用戶名和密碼:出站端點騾子
<http:outbound-endpoint exchange-pattern="request-response" address="http://localhost:8080/callreservation" method="POST" contentType="application/json" doc:name="HTTP">
此出站端點,我嘗試設置的用戶名,密碼,頭
喜歡如下
<message-properties-transformer scope="outbound">
<add-message-property key="'http.headers'.username" value="admin"/>
<add-message-property key="'http.headers'password" value="admin"/>
</message-properties-transformer>
<set-property propertyName="username" value="admin"/>
<set-property propertyName="password" value="[email protected]"/>
<set-property propertyName="Accept" value="application/json"/>
,但沒有接受作爲頭用於出站端點。即時通訊使用騾子3.6.0
任何建議
這是什麼mule版本? – afelisatti
另外,記錄器的輸出是什麼? – afelisatti
我在任意一個工作室中運行應用程序。如何檢查mule版本 – muledevlepoer07