I have generated a class using wsdl.exe from the wsdl file.
I inspected the generated code and there is like 3-4 methods available but I guess only by soap protocol(I'm just guessing & probably wrong) which is defined with the attribute above like:
Simply, I want to create a dummy class from the wsdl and use its methods.
Thanks in advance.
I would recommend using svcutil.exe instead of wsdl.exe
Using svcutil makes it really easy to make a "dummy" class (which I am reading as a stub or mock) as it generates an interface as well as a proxy.
So, for example,
svcutil.exe http://www.restfulwebservices.net/wcf/CurrencyService.svc?wsdl
will generate an interface called ICurrencyService
and a CurrencyServiceClient
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With