[英]How to change default Proxy HTTP endpoint in wso2esb
我希望通過增強的應用程序更改代理服務的URL。 以前,我的URL像不同於ESB默認端點的差異。 現在代理提供此URL。
http://soccerhome:8280/services/Customer_Proxy
當我現有的應用程序在其他端點上運行時
http://soccerhome:8280/Customer_Proxy
因此,他們無法在此處更改端點,我將如何以任何方式刪除上述URL中的服務部分。 提前致謝。
只需在your_proxy中提供服務URL。
<parameter name="ServiceURI">Customer_Proxy</parameter>
然后,您將獲得您的期望URL。
在repository / conf / axis2 / axis2.xml中更改參數servicePath
在調度程序階段中編輯repository / conf / axis2 / axis2.xml:
<phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
添加以下句柄。
<handler name="CustomURIBasedDispatcher"
class="org.apache.synapse.core.axis2.CustomURIBasedDispatcher"/>
現在,如果您繼續編輯代理服務,則可以將服務參數添加為:serviceURI = Customer_Proxy
這將提供您想要的URL。
您應該更改repository / conf / axis2 / axis2.xml中的axis2.xml文件或在代理url中創建服務
<parameter name="URL OF Service">CustomProxy</parameter>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.