【发布时间】:2020-06-15 14:59:51
【问题描述】:
我正在尝试使用 WCF 添加 wsdl。但起初我收到这样的警告; enter image description here
详情如下:
未导入以下策略声明:
XPath://wsdl:definitions[@targetNamespace='urn:sap-com:document:sap:soap:functions:mc-style']/wsdl:binding[@name='zz_binding_SOAP12']
断言:
<saptrnbnd:OptimizedXMLTransfer xmlns:saptrnbnd='http://www.sap.com/webas/710/soap/features/transportbinding/'>..</saptrnbnd:OptimizedXMLTransfer>
<sapattahnd:Enabled xmlns:sapattahnd='http://www.sap.com/710/features/attachment/'>..</sapattahnd:Enabled>
未导入以下策略声明:
XPath://wsdl:definitions[@targetNamespace='urn:sap-com:document:sap:soap:functions:mc-style']/wsdl:binding[@name='zz_binding']
断言:
<saptrnbnd:OptimizedXMLTransfer xmlns:saptrnbnd='http://www.sap.com/webas/710/soap/features/transportbinding/'>..</saptrnbnd:OptimizedXMLTransfer>
<sapattahnd:Enabled xmlns:sapattahnd='http://www.sap.com/710/features/attachment/'>..</sapattahnd:Enabled>
未处理来自命名空间“http://schemas.xmlsoap.org/ws/2004/09/policy”的可选 WSDL 扩展元素“策略”。
XPath: //wsdl:definitions[@targetNamespace='urn:sap-com:document:sap:soap:functions:mc-style']/wsdl:portType[@name='zz_test_web_structure']/wsdl:operation[@name='ZzTestWebService']
未处理来自命名空间“http://schemas.xmlsoap.org/ws/2004/09/policy”的可选 WSDL 扩展元素“策略”。
XPath: //wsdl:definitions[@targetNamespace='urn:sap-com:document:sap:soap:functions:mc-style']/wsdl:portType[@name='zz_test_web_structure']
添加wcf服务后还是无法运行。有人知道吗?
【问题讨论】:
标签: wcf asp.net-core policy service-reference