나는이 같은 내 WCF 코드를 생성하는 svcutil.exe에 사용하고는 :SvcUtil.exe를 사용하여 서비스 구성 이름을 덮어 쓰지 않고 네임 스페이스를 어떻게 설정할 수 있습니까?
SvcUtil.exe http://www.MyServer.com:8080/MyService/mex /out:"C:\test.cs" /mc
나는 /namespace
인수 (/namespace:*,MyNamespace
)을 추가로 설정하면 나는 그것을 작동시킬 수 있지만, 그것은에 ConfigurationName
값을 덮어 씁니다 생성 된 인터페이스의 생성 ServiceContractAttribute
: 나는 네임 스페이스를 설정하지 않은 경우
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="MyNamespace.MyServiceName")]
public interface MyServiceName
{ ... }
는 ConfigurationName
의 값 ("MyNamespace.MyServiceName"잘못 작동하지 않음) 올바른 "MyServiceName"입니다. 나는/ServiceName은 추가 시도했다 :이면 MyService 인수를하지만, 그것이
Error: The /serviceName: option conflicts with other options. Review your use of the tool.
가 어떻게이 ConfigurationName을 덮어 쓰지 않고 내 생성 된 클래스의 네임 스페이스를 지정할 수 있다고 하더군요?