【问题标题】:Custom URL for HTTP Proxy service in wso2esbwso2esb 中 HTTP 代理服务的自定义 URL
【发布时间】:2015-12-09 14:52:47
【问题描述】:

我正在尝试在 WSO2ESB 4.8.1 中为 http 代理设置自定义 URL。这是相关的文档:http://wso2.com/library/knowledge-base/2011/01/custom-urls-wso2-esb-proxy-services/

按照文档,我将“CustomURIBasedDispatcher”处理程序添加到axis2.xml,并将参数“ServiceURI”添加到代理中。

但它仍然无法正常工作。知道还缺少什么吗?

【问题讨论】:

    标签: wso2 wso2esb


    【解决方案1】:

    您所指的文档适用于 WSO2 ESB 3.0.0/3.0.1 在您的 inSequence 中尝试以下内容

      <inSequence>
         <property name="param1" expression="$url:path"/>
         <property name="param2" value="someValue"/>
         <send>
            <endpoint name="xyz">
               <http uri-template="http://localhost:8080/testservice/{param1}?xyz={param2}"/>
            </endpoint>
         </send>
      </inSequence>
    

    这里的“param1”是一个 URL 参数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多