How can i get HEADER in my ESB i am using following property, its not not working

泄露秘密 提交于 2019-12-08 07:53:07

问题


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"/>

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

Thanks in advance


回答1:


if what you are trying to access is 'username', the configuration should be:

<property name="some_name_here" expression="get-property('transport', 'username')"/>


来源:https://stackoverflow.com/questions/16374129/how-can-i-get-header-in-my-esb-i-am-using-following-property-its-not-not-workin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!