我正在使用Nant进行构建过程。我需要将我的web.config文件更改为设置端点地址。我的web.config文件包含5个端点地址,需要更改名称类似于"service1“的节点的端点地址。
<endpoint address="" binding="wsHttpContextBinding"
bindingConfiguration="WSHttpContextBinding_Iservice1" contract="xyz" name="**service1**">发布于 2012-01-02 11:25:20
您需要创建一个调用沙尔波克的目标
样本代码:
<xmlpoke
file="Web.config"
xpath="/configuration/system.ServiceModel/services/service/endpoint[@name = 'service1']/@address"
value="127.0.0.1:8080" />https://stackoverflow.com/questions/8700094
复制相似问题