質問

OTRS TicketConnector .NETアプリ内のWebService

通常、WebServiceに接続する最も簡単な方法は、「Add Service Reference」を介してWSDLをインポートすることです。残念ながら、OTRS TicketConnectorはWSDLを公開しません。

TicketConnectorのカスタムWSDLを見つけましたこちら。しかし、「サービスの追加参照」でそれを使用しようとしているときは、それは空の参照。 "次のエラーを示しています:

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

SVCcutilで上記のWSDLを成功せずにインポートしようとしました。
また、同じ結果を持つ 'add Webリファレンス'を介してこのWSDLをインポートしようとしました。

だから私の質問は次のとおりです。 .NETアプリからOTRS TicketConnectorサービスをどのように消費しますか?
多分あなたは.NETツールで正常にインポートできるコードスニペットまたは適切なWSDLを与えることができますか?
また、上記のWSDLエラーに関する問題を解決するのに役立ちます。

役に立ちましたか?

解決

OTRSコミュニティフォーラム、i'veは答えを得ました。 wsdls for チケットコネクタ Github

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top