2011-01-24 69 views
0

添加Web引用WCF服务我们有WCF服务部署,并尝试Web引用从本地 C++项目(写在VS2005)添加到它会导致一个错误:错误从C++项目

Creating web service proxy file for NotificationReceiver1 ...

sproxy : error SDL1000 : Unspecified error

sproxy : error SDL1002 : failure in generating output file: "NotificationReceiver1.h"

这里部署WCF服务配置文件:

<system.serviceModel> 
<services> 
    <service behaviorConfiguration="NotificationService.NotificationReceiverBehavior" name="NotificationService.NotificationReceiver"> 
    <endpoint address="" binding="basicHttpBinding" contract="NotificationService.INotificationReceiver" /> 
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
    </service> 
</services> 
<behaviors> 
    <serviceBehaviors> 
    <behavior name="NotificationService.NotificationReceiverBehavior"> 
     <serviceMetadata httpGetEnabled="true"/> 
     <serviceDebug includeExceptionDetailInFaults="true"/> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 
</system.serviceModel> 

该服务可以与WebServiceStudio打开并工作正常(我通常用它的网络/ WCF服务测试)......但是VS不能产生H - 文件...为什么?

欢迎任何想法。

非常感谢。

回答