3 回答

TA貢獻(xiàn)1803條經(jīng)驗(yàn) 獲得超6個(gè)贊

TA貢獻(xiàn)1801條經(jīng)驗(yàn) 獲得超8個(gè)贊
var remoteAddress = new System.ServiceModel.EndpointAddress(_webServiceUrl);using (var productService = new ProductClient(new System.ServiceModel.BasicHttpBinding(), remoteAddress)){ //set timeout productService.Endpoint.Binding.SendTimeout = new TimeSpan(0,0,0,_webServiceTimeout); //call web service method productResponse = productService.GetProducts();}
編輯
BasicHttpsBinding
BasicHttpBinding
.

TA貢獻(xiàn)1946條經(jīng)驗(yàn) 獲得超3個(gè)贊
合同=“IMySOAPWebService”
- 3 回答
- 0 關(guān)注
- 377 瀏覽
添加回答
舉報(bào)