나는 여기에이 SOAP 엔드 포인트를 추가하려고 해요 : http://ds.hitpromo.net/product
.NET의 SOAP 클라이언트 : 배열
나는 다음과 같은 오류 얻을 그러나 :
Scaffolding Code ... Error:Error: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter Error: The datatype ' http://schemas.xmlsoap.org/soap/encoding/:Array ' is missing. XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:ProductControllerwsdl']/wsdl:portType[@name='ProductControllerPortType'] Error: 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='urn:ProductControllerwsdl']/wsdl:portType[@name='ProductControllerPortType'] XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:ProductControllerwsdl']/wsdl:binding[@name='ProductControllerBinding'] Error: 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='urn:ProductControllerwsdl']/wsdl:binding[@name='ProductControllerBinding'] XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:ProductControllerwsdl']/wsdl:service[@name='ProductControllerService']/wsdl:port[@name='ProductControllerPort'] Error: No endpoints compatible with .Net Core apps were found. An error occurred in the tool.
Failed to generate service reference.
내가 알고있는 것처럼, 그것은 .NET의 때문입니다을 SOAP 생성 코드가 xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
의 유형을 포함하는 것으로 이해하지 못했습니다. 수동으로 포함되었지만 지시 사항이 명확하지 않습니다 (이 주제에 대한 다른 StackOverflow 응답 포함). WSDL을 다운로드하고 import/include를 사용하면 효과가 없습니다.
아이디어가 있으십니까?
흠 .NET 핵심 AFAIK 작동하지 않습니다 : 여기 링크입니다 -
나는 다소 닷넷 4.5 사용하여 유사한 WCF했던 상황이 있었다 . – StrangeWill