Solve Web Service Error
-
We just change netcore to framework and it works Hello, We have a WS, if you go to server you can run it and see the 2 methods, you can invoke then and WORK If you go to Visual Studio 2019 and add a reference to the project using the: http://xxx.xxx.xxx.x/wsxxx/wseps.asmx?wsdl you can see the method and add to the project: But when we try: ServiceReference1.WPSSOAPCLIENT oClient= new ServiceReference1.WPSSOAPCLIENT()... 1. The new ServiceReference1.WPSSOAPCLIENT() is marked as an error.: Does not contanins a constructor that take 0 argument
-
We just change netcore to framework and it works Hello, We have a WS, if you go to server you can run it and see the 2 methods, you can invoke then and WORK If you go to Visual Studio 2019 and add a reference to the project using the: http://xxx.xxx.xxx.x/wsxxx/wseps.asmx?wsdl you can see the method and add to the project: But when we try: ServiceReference1.WPSSOAPCLIENT oClient= new ServiceReference1.WPSSOAPCLIENT()... 1. The new ServiceReference1.WPSSOAPCLIENT() is marked as an error.: Does not contanins a constructor that take 0 argument
So take a look at the new constructor. The error is really self explanatory, so follow the instructions and see what constructors are available now.