The fundamental problem I have is we need to connect to Salesforce under .Net Standard 2.0. This means we cannot use the Web Reference as it uses the System.Web group of classes and they are not in .Net Standard 2.0.
I tried to use a Service Reference but when I click Go I get “The system cannot find the path specified.” (I assume the final step in those instruction is to click go, the article doesn’t say.) And this may not be an usable solution if it also makes use of the System.Web group of classes.
If I create a .Net Standard 2.0 library in VisualStudio, there is no way to create a web reference. And for a service reference the only option is to create an OpenAPI service reference.
We cannot use the Salesforce REST API because that uses an OAuth protocol for the login and our code needs to run on a server, and so no U.I., no browser, no way to login when the program runs. We need to authenticate & authorize using the username, password, & token.
Resources I have looked at (among others) that have not helped:
- https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_steps_import_wsdl.htm How can I do this?