更改WCF项目中的服务引用 [英] Changing the Service Reference in a WCF project
问题描述
我有一个WCF服务(MyService)。此服务使用外部Web服务。假设外部Web服务名称是WSExternal1。现在名称改为WSExternal2。
现在我想指向WSExternal2。
1.因此,如果在我的项目中,更改WebConfig-> AppSetting足以指向新服务?
2.在这种情况下,我不需要重新发布代码。现在如果需要更改服务引用以指向WSExternal2,那么我需要重新发布我的服务(MyService)?
谢谢..
I have a WCF service(MyService). This service consume an external web service. Suppose the external web service name is WSExternal1. Now the name is change to WSExternal2.
Now i want to point to WSExternal2.
1. So if in my project, change in WebConfig->AppSetting is enough to point to the new service?
2. In this case i dont need to republish the code. Now if need to change the service reference to point to WSExternal2, then i need to republish my Service(MyService)?
Thank you..
推荐答案
右键单击您的SVC文件并选择Mark up,然后选中..是否有任何WSExternal1提及。
Right click on your SVC file and select Mark up and then check..is there any WSExternal1 mentioned.
这篇关于更改WCF项目中的服务引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!