I have created a DotNet based Program (Developed using C# and Visual Studio) that
- Connects to Tridion docs + authenticates
- Finds certain publication and returns the file
However, our deployment stack is all Docker + Linux, and I was wondering if anyone had any luck connecting to Tridion from a DotNetCore application.
I am getting the following errors when porting the program over to DotNetCore:
- Unable to add Service Reference.
- It’s giving me errors including the one pasted below:
- Unable to use types and modules used in the InfoShareWSHelper.cs files not related to issue #1. It seems as if many of the modules used in the helper file aren’t available in DOTNETCORE as per the documentation here. I also tried to find Nuget packages for them but wasn’t able to find packages for everything. Example: GenericXmlSecurityToken, WsdlImporter and many other types available in dotnet is not available in dotnetcore. I was able to resolver some of the issues by using Nuget packages but not all.
Error when Importing a web reference
Resolving project references ...
Importing web service metadata ...
Number of service endpoints found: 2
Scaffolding service reference code ...
Warning:Warning: Cannot import wsdl:port
Detail:
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='Application']/wsdl:port[@name='CustomBinding_Application']
Warning:Warning: No endpoints compatible with .Net Core apps were found.
Warning:Warning: Cannot import wsdl:port
Detail:
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='Application']/wsdl:port[@name='CustomBinding_Application1']
Warning:Warning: Cannot import wsdl:binding
Detail: An exception was thrown in a call to a policy import extension.
Extension: System.ServiceModel.Channels.SecurityBindingElementImporter
Error: An exception was thrown in a call to a policy import extension.
Extension: System.ServiceModel.Channels.SecurityBindingElementImporter
Error: The method or operation is not implemented.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='CustomBinding_Application']
Warning:Warning: Cannot import wsdl:binding
Detail: An exception was thrown in a call to a policy import extension.
Extension: System.ServiceModel.Channels.SecurityBindingElementImporter
Error: The method or operation is not implemented.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='CustomBinding_Application1']
Updating project ...
Done.