문제

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을 가져 오려고했습니다.

그래서 내 질문은 다음과 같습니다. 어떻게 .NET 앱에서 OTRS TicketConnector 서비스를 소비합니까?
어쩌면 .NET 도구로 성공적으로 가져올 수있는 코드 스 니펫이나 적절한 WSDL을 제공 할 수 있습니까? 또한 위에서 언급 한 WSDL 오류가있는 문제를 해결하는 데 도움이되는 데 도움이 될 것입니다.

도움이 되었습니까?

해결책

OTRS 커뮤니티 포럼 , i답장이있어. 티켓 커넥터의 github .

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top