Consume OTRS TicketConnectector de .NET APPS
-
26-12-2019 - |
Pregunta
Quiero consumir OTRS TicketConnectector Servervice en una aplicación .NET.
Normalmente, la forma más fácil de conectarse a un WebService es importar su WSDL a través de 'Añadir referencias de servicio'. Desafortunadamente, OTRS TicketConnector no publica el WSDL.
He encontrado un WSDL personalizado para TicketConnectector aquí . Pero cuando estoy tratando de usarlo en 'Añadir referencias de servicio', conduce a una referencia vacía.cs que muestra los siguientes errores:
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.
Solución
Gracias a la Foro de la comunidad OTRS , iTengo la respuesta. wsdls para conector de boletos están disponibles en GitHub .
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow