Where is svcutil.exe in Windows 7?

前端 未结 6 860
北恋
北恋 2020-12-12 16:54

For my WCF, I need to generate configuration file for my client application to specify things such as binding of service, the address of the service and the contract.

6条回答
  •  攒了一身酷
    2020-12-12 17:37

    Try to generate the proxy class via SvcUtil.exe with command

    Syntax:

    svcutil.exe /language: /out:.cs /config:.config http://:
    

    Example:

    svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:8000/ServiceSamples/myService1
    

    To check if service is available try in your IE URL from example upon without myService1 postfix

提交回复
热议问题