How can I consume a WCF service using a local WSDL file?

后端 未结 1 723
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 20:24

I need to consume a WCF service based on a (preferably single) wsdl file.

The environment is VS-2008 (sp1), and I will be using a customized \"Add Service Reference

1条回答
  •  再見小時候
    2021-01-04 21:04

    Sure - you can copy the path+filename for the WSDL and paste that into the "Add Service Reference" dialog box in Visual Studio (or just type int the full path + WSDL file name).

    enter image description here

    Alternatively, you can use the svcutil.exe command line utility to convert the WSDL file to your client proxy class.

    0 讨论(0)
提交回复
热议问题