当我尝试运行wsdl.exe来为Book Car Reservation服务生成代码时,我遇到了问题。我没有任何其他服务的这个问题。
我在VS2015开发人员命令提示符中使用以下命令:
wsdl -n:SabreWebservices -o=Sabre.cs http://webservices.sabre.com/wsdl/tpfc/OTA_VehResLLS2.0.2RQ.wsdl
该命令返回以下错误:
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2028, R2029: A DESCRIPTION using the WSDL namespace and the WSDL SOAP binding namespace MUST be valid according to the XML Schemas found at http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd and http://schemas.xmlsoap.org/wsdl/soap/2003-02-11.xsd.
- Warning: The element 'message' in namespace 'http://schemas.xmlsoap.org/wsdl/' has invalid child element 'part'. List of possible elements expected: 'documentation, part' in namespace 'http://schemas.xmlsoap.org/wsdl/' as well as any element in namespace '##other'. Line 12, position 4.
- Warning: The element 'message' in namespace 'http://schemas.xmlsoap.org/wsdl/' has invalid child element 'part'. List of possible elements expected: 'documentation, part' in namespace 'http://schemas.xmlsoap.org/wsdl/' as well as any element in namespace '##other'. Line 17, position 4.
For more details on the WS-I Basic Profile v1.1, see the specification at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.
Error: Unable to import binding 'OTA_VehResSoapBinding' from namespace 'https://webservices.sabre.com/websvc'.
- Unable to import operation 'OTA_VehResRQ'.
- Missing message part 'header' for message 'OTA_VehResInput' from namespace '
https://webservices.sabre.com/websvc'.
Parameter name: partName