WSO2ESB中的简单Apache ProxyPass等价物?

WSO2ESB中的简单Apache ProxyPass等价物?,wso2,wso2esb,Wso2,Wso2esb,这是我的代理人 <proxy xmlns="http://ws.apache.org/ns/synapse" name="lascaux" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <header name="To"

这是我的代理人

 <proxy xmlns="http://ws.apache.org/ns/synapse"
   name="lascaux"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
 <target>
     <inSequence>
         <header name="To"
             expression="concat('http://10.0.0.2:8080/',syn:get-property('To'))"/>
         <send/>
     </inSequence>
     <outSequence>
        <send/>
     </outSequence>
 </target>
 <description/>
</proxy>

它应该联系REST webapp服务器,该服务器将根据操作返回200/404/409..etc。我发现很难让PUT请求与它一起工作。GET工作正常。

您必须使用API而不是代理服务。请在下面的链接中找到示例


谢谢nadeesha.我看过了,但是我们的服务很大,所以现在不需要添加每个条目。。我通过引用此链接中的一个示例修复了它