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

猛跑小豬
TA貢獻(xiàn)1858條經(jīng)驗(yàn) 獲得超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 關(guān)注
- 1238 瀏覽
添加回答
舉報(bào)
0/150
提交
取消