場景:1.10個.NET webservice站點2.客戶端采用動態代理方式 訪問webservice。3.NGINX做負載均衡。靜態頁面訪問 測試正常(地址:http://localhost) 問題:1.動態代理訪問時會先根據wsdl生成臨時代理DLL2.但代理DLL當中的<soap12:address location="http://localhost:8882/WebService.asmx"/>地址是隨機的生成時是那個地址 后面的代理就是那個地址 怎么修改這個地址了?
3 回答

猛跑小豬
TA貢獻1858條經驗 獲得超8個贊
System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
System.ServiceModel.EndpointAddress address = new System.ServiceModel.EndpointAddress("your nginx server address");
xxxSoapClient client = new xxxSoapClient(binding, address);
- 3 回答
- 0 關注
- 1231 瀏覽
添加回答
舉報
0/150
提交
取消