.NET Apps에서 Otrs TicketConnector를 소비합니다
-
26-12-2019 - |
문제
OTRS TicketConnector 웹 서비스 .NET 앱.
일반적으로 WebService에 연결되는 가장 쉬운 방법은 '서비스 참조 추가'를 통해 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을 성공하지 못했습니다.
또한 동일한 결과를 가진 '웹 참조 추가'를 통해이 WSDL을 가져 오려고했습니다.
해결책
OTRS 커뮤니티 포럼 , i답장이있어. 티켓 커넥터의 은 github .
제휴하지 않습니다 StackOverflow