Domanda

Voglio consumare OTRS TicketConnector WebService in AP .NET.

Normalmente, il modo più semplice per collegarsi a un WebService è quello di importare il suo WSDL tramite "Add Service Reference". Sfortunatamente, OTRS TicketConnector non pubblica il WSDL.

Ho trovato un wsdl personalizzato per il ticketconnector qui . Ma quando sto cercando di usarlo in "Aggiungi riferimento servizio" conduce a un riferimento vuoto.CS che mostra i seguenti errori:

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.
.

Ho provato a importare il WSDL sopra Via SvCril senza successo.
Inoltre, ho provato a importare questa WSDL tramite "Aggiungi riferimento Web" con gli stessi risultati.

Quindi la mia domanda è: Come si consuma OTRS TicketConnector Service da AP .NET?
Forse puoi dare uno snippet di codice o un wsdl appropriato che può essere importato con successo con gli strumenti .NET?
Inoltre, apprezzerei qualsiasi aiuto per risolvere i problemi con gli errori WSDL che ho menzionato sopra.

È stato utile?

Soluzione

Grazie a OTRS Community Forum , iHo ricevuto la risposta. WSDLS per Connettore del ticket è disponibile su GitHub .

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top