Question

Je veux consommer OTRS TicketConnector Webservice dans une application .NET.

Normalement, le moyen le plus simple de se connecter à un service Web est d'importer son WSDL via "Ajouter une référence de service". Malheureusement, OTRS TicketConnector ne publie pas le WSDL.

J'ai trouvé une WSDL personnalisée pour TicketConnector ici . Mais lorsque j'essaie de l'utiliser dans "Ajouter une référence de service", cela conduit à une référence vide .CS montrant les erreurs suivantes:

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.

J'ai essayé d'importer la WSDL ci-dessus via SvCuttil sans succès.
En outre, j'ai essayé d'importer cette WSDL via "Ajouter une référence Web" avec les mêmes résultats.

Donc, ma question est la suivante: Comment consommez-vous un service de ticketconnector OTRS à partir d'une application .NET?

Peut-être que vous pouvez donner un extrait de code ou une WSDL appropriée pouvant être importée avec succès avec les outils .NET?
En outre, j'apprécierais toute aide pour résoudre les problèmes avec les erreurs de la WSDL que j'ai mentionnées ci-dessus.

Était-ce utile?

La solution

Grâce au Forum communautaire OTRS , i'j'ai la réponse. WSDLS pour Connecteur de ticket est disponible sur GitHub .

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top