如何在 WSO2 AM 序列中的 运行 时间检索当前服务的 HTTP REST METHOD?
How to retrieve HTTP REST METHOD of current service at Run time in WSO2 AM Sequence?
如何在运行时在 WSO2 Api 管理器序列中检索 HTTP REST METHOD(GET,PUT,POST,DELETE,OPTIONS)?我试过 $ctx:REST_METHOD which returns 'null' value.
<sequence name="ec_rest_dynamic_ep" trace="disable" xmlns="http://ws.apache.org/ns/synapse">
<property expression="$ctx:REST_METHOD" name="restmethod"
scope="default" type="STRING"/>
<log>
<property expression="get-property('restmethod')" name="*******************REST_METHOD***********"/>
</log>
</sequence>
基本上,当前服务的 HTTP REST METHOD 值和 URL 该服务的上下文需要识别服务,以便在运行时动态地将服务重定向到其端点。
如何在运行时在 WSO2 Api 管理器序列中检索 HTTP REST METHOD(GET,PUT,POST,DELETE,OPTIONS)?我试过 $ctx:REST_METHOD which returns 'null' value.
<sequence name="ec_rest_dynamic_ep" trace="disable" xmlns="http://ws.apache.org/ns/synapse">
<property expression="$ctx:REST_METHOD" name="restmethod"
scope="default" type="STRING"/>
<log>
<property expression="get-property('restmethod')" name="*******************REST_METHOD***********"/>
</log>
</sequence>
基本上,当前服务的 HTTP REST METHOD 值和 URL 该服务的上下文需要识别服务,以便在运行时动态地将服务重定向到其端点。