问题
The SAP .NET connector is not compatible with the .NET Core framework. Is there any other way to retrieve data from SAP when using .NET Core?
I've allready searched for an alternative in the nuget package manager but I did not found one. Is there any workaround I can use? I would very much like to benefit from the performance of .NET Core but I also need to be able to connect to SAP.
回答1:
I accept that you have an SOAP based Service on SAP side and you try to connect this SAP service via .NetCore. If this senerio is true, unfortunetelly you can not connect SOAP service with .NetCore via "Add Service Reference." But you can search about ".NetCore Wcf Client Service".
Another solution is that use Rest Service and simulate SOAP protocol.
Here is the sample problem and solution at there.
Client to send SOAP request and received response
回答2:
I have created a library to easly making SAP RFC calls from .NET CORE Libray is supported in Windows, Linux and macOS. Check it solves your needs https://github.com/nunomaia/NwRfcNet/
来源:https://stackoverflow.com/questions/49627008/sap-net-connector-sapnco-net-core