場(chǎng)景:1.10個(gè).NET webservice站點(diǎn)2.客戶端采用動(dòng)態(tài)代理方式 訪問(wèn)webservice。3.NGINX做負(fù)載均衡。靜態(tài)頁(yè)面訪問(wèn) 測(cè)試正常(地址:http://localhost) 問(wèn)題:1.動(dòng)態(tài)代理訪問(wèn)時(shí)會(huì)先根據(jù)wsdl生成臨時(shí)代理DLL2.但代理DLL當(dāng)中的<soap12:address location="http://localhost:8882/WebService.asmx"/>地址是隨機(jī)的生成時(shí)是那個(gè)地址 后面的代理就是那個(gè)地址 怎么修改這個(gè)地址了?
3 回答
猛跑小豬
TA貢獻(xiàn)1858條經(jīng)驗(yàn) 獲得超8個(gè)贊
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)注
- 1252 瀏覽
添加回答
舉報(bào)
0/150
提交
取消
