문제

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

도움이 되었습니까?

해결책

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

In this configuration you are trying to assign an http header named 'Accept' to a property named 'username'.

If 'username' is what you want to access from the http headers, it should look like:

<property name="some_name_here" expression="get-property('transport', 'username')"/>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top