我如何在我的 ESB 中获取 HEADER 我正在使用以下属性,它不起作用 [英] How can i get HEADER in my ESB i am using following property, its not not working
本文介绍了我如何在我的 ESB 中获取 HEADER 我正在使用以下属性,它不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从移动客户端获取数据,他们以 JSON 格式发送数据以及将一些值作为 HEADER 发送到 WSO2ESB 我正在使用此属性获取正常值
i am getting the data from mobile client they are sending data in JSON as well as sending some values as HEADER to WSO2ESB i am getting normal values using this property
<property name="asset" expression="//asset/text()" scope="default"/>
但是如何在我的 ESB 中获取 HEADER 我正在使用这个属性它不起作用
but how can i get HEADER in my ESB i am using this property its not not working
<property name="username" expression="get-property('transport', 'Accept')"/>
它将如何运作,你会尽快回复我
how it will work will you revert me as soon as
提前致谢
推荐答案
如果你要访问的是'username',配置应该是:
if what you are trying to access is 'username', the configuration should be:
<property name="some_name_here" expression="get-property('transport', 'username')"/>
这篇关于我如何在我的 ESB 中获取 HEADER 我正在使用以下属性,它不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文