Budda
Budda

Reputation: 18353

Error on adding web reference to WCF service from C++ project

We have WCF service deployed, and attempt to add web reference to it from native C++ project (is written in VS2005) causes an error:

Creating web service proxy file for NotificationReceiver1 ...

sproxy : error SDL1000 : Unspecified error

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

Here is deployed WCF service configuration file:

<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>

This service can be opened with WebServiceStudio and is working fine (usually I use it for testing of web/wcf services)... But VS can't generate h-file ... why?

Any ideas are welcome.

Thanks a lot.

Upvotes: 0

Views: 808

Answers (1)

DesignFirst
DesignFirst

Reputation: 329

could you try to create it from command line using svcutil like:

svcutil.exe /language:cpp /out:NotificationReceiver.h /config:app.config http://localhost:8000/NotificationService

Upvotes: 3

Related Questions