从.NET应用程序中使用OTRS TicketConnector

我想在.NET应用程序中使用OTRS TicketConnector webservice。

通常,连接到Web服务的最简单方法是通过“添加服务引用”导入其WSDL。 不幸的是,OTRS TicketConnector不发布WSDL。

我在这里找到了TicketConnector的自定义WSDL。 但是,当我尝试在“添加服务引用”中使用它时,它会导致一个空的Reference.cs显示以下错误:

Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter Error: There was a problem loading the XSD documents provided: a reference to a schema type with name 'OTRS_TicketCreate' and namespace 'http://www.otrs.org/TicketConnector/' could not be resolved because the type definition could not be found in the schema for targetNamespace 'http://www.otrs.org/TicketConnector/'. Please check the XSD documents provided and try again. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.otrs.org/TicketConnector/']/wsdl:portType[@name='GenericTicketConnector_Interface'] Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on. XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://www.otrs.org/TicketConnector/']/wsdl:portType[@name='GenericTicketConnector_Interface'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.otrs.org/TicketConnector/']/wsdl:binding[@name='GenericTicketConnector_Service'] Cannot import wsdl:port Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://www.otrs.org/TicketConnector/']/wsdl:binding[@name='GenericTicketConnector_Service'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.otrs.org/TicketConnector/']/wsdl:service[@name='GenericTicketConnector']/wsdl:port[@name='GenericTicketConnector_endPoint'] Custom tool error: Failed to generate code for the service reference 'ServiceReference1'. Please check other error and warning messages for details. 

我试图通过svcutil导入上面的WSDL但没有成功。
此外,我尝试通过“添加Web引用”导入此WSDL,结果相同。

所以我的问题是: 你如何从.NET应用程序中使用OTRS TicketConnector服务?
也许您可以提供可以使用.NET工具成功导入的代码段或正确的WSDL?
另外,对于解决上面提到的WSDL错误的问题,我将不胜感激。

感谢OTRS社区论坛 ,我得到了答案。 可以在GitHub上找到 Ticket Connector的 WSDL