How to use a WSDL File to create a WCF Proxy?

后端 未结 3 1483
天命终不由人
天命终不由人 2020-12-08 08:00

I have an old WSDL file and I want to use WCF to communicate with the service.

The WSDL is generated from a ASMX (I suppose but I am not sure).

What would b

3条回答
  •  既然无缘
    2020-12-08 08:38

    wsdl.exe is the old web service (1.1) way of creating a proxy. The first thing to try is "Add Service Reference" as already mentioned. This uses svcutil.exe to create the proxy. If you need more control over how the proxy is created, you can use svcutil.exe from the command line with a variety of switches.

    With that said... I have had trouble with older web service wsdls. In particular, an old Apache AXIS Web Service containing overloaded operations. Please see my post here for complete details. (My problem still isn't solved. I hope you don't encounter the same issues, but if you do and figure them out, please answer my question. :)

提交回复
热议问题