proxy.Endpoint.Address = new EndpointAddress("http://newaddress");
Run Code Online (Sandbox Code Playgroud)
其中proxy
是导入WSDL时生成的客户端类的实例.或者,您可以在创建客户端代理时指定地址:
var endpoint = new EndpointAddress("http://newaddress");
var proxy = new SomeClientProxy("BasicHttpBinding_IHelloWorld", endpoint);
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8903 次 |
最近记录: |