WSDL导入错误 [英] WSDL Import Error

查看:108
本文介绍了WSDL导入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,在尝试导入WSDL时是否有一种方法可以查明验证错误的来源? (工具,建议等)

Hello, Is there a way to pinpoint the source of validation errors when attempting to import a WSDL? (tool, advice, ect)

我已经阅读了WSDL的API导入限制和已知问题,但我仍然茫然.任何建议都将不胜感激.

I have read the API import restrictions and known issues for WSDL but i'm still at a loss. Any suggestion is greatly appreciated.

创建窗口错误:
    一个或多个字段包含不正确的值:

   解析错误:无法从WSDL导入API

Creation Window Error:
    One or more fields contain incorrect values:

    Parsing error(s): Unable to import API from WSDL

创建弹出窗口日志:   
信息性:ParsingXMLStarted:开始解析XML
信息性:ParsingXMLComplete:完成了对XML的解析
详细信息:WsdlImportRuleVerifyWadl11Schema:针对XML Schema验证了WSDL
信息:WsdlPrecheckComplete:完成WSDL验证. WSDL被认为是有效的.
信息性:WsdlParsingStarted:服务:端点:
信息性:WsdlIdentification:WsdlVersion:'Wsdl11'TargetNamespace:'http://tempuri.org/cpsh2h/serviceh2h'.
信息性:LoadedSchema:目标命名空间:'http://tempuri.org/cpsh2h/serviceh2h'.
信息性:LoadedSchemas:已加载的"1"模式.
信息:LoadedTypes:已加载的"9"类型.
信息性:LoadedMessages:已加载"18"条消息.
信息性:LoadedInterfaces:已加载的"3"接口.
信息:LoadedBindings:已加载的"4"绑定.
信息性:LoadedServices:已加载的"1"服务.
信息性:WsdlParsingComplete:解析了3个操作和18条消息
信息性:ApiType:创建SOAP Passthrough API
信息:APICreated:名称:serviceh2h服务网址:https://test.somedomain.com/cpsh2h/serviceh2h.asmx
信息性:XsdParsing:开始解析http://tempuri.org/cpsh2h/serviceh2h   

Creation Popup log:    
Informational: ParsingXMLStarted : Started parsing XML
Informational: ParsingXMLComplete : Completed parsing XML
Verbose: WsdlImportRuleVerifyWadl11Schema : WSDL validated against XML Schema
Informational: WsdlPrecheckComplete : Completed WSDL verification. WSDL is considered valid.
Informational: WsdlParsingStarted : Service : Endpoint :
Informational: WsdlIdentification : WsdlVersion: 'Wsdl11' TargetNamespace: 'http://tempuri.org/cpsh2h/serviceh2h'.
Informational: LoadedSchema : Target Namespace: 'http://tempuri.org/cpsh2h/serviceh2h'.
Informational: LoadedSchemas : Loaded '1' schemas.
Informational: LoadedTypes : Loaded '9' types.
Informational: LoadedMessages : Loaded '18' messages.
Informational: LoadedInterfaces : Loaded '3' interfaces.
Informational: LoadedBindings : Loaded '4' bindings.
Informational: LoadedServices : Loaded '1' services.
Informational: WsdlParsingComplete : Parsed 3 operations and 18 messages
Informational: ApiType : Creating SOAP Passthrough API
Informational: APICreated : Name : serviceh2h Service Url: https://test.somedomain.com/cpsh2h/serviceh2h.asmx
Informational: XsdParsing : Starting to parse http://tempuri.org/cpsh2h/serviceh2h   

活动日志摘要:
错误代码
ValidationError
留言
一个或多个字段包含不正确的值:

Activity log Summary:
Error code
ValidationError
Message
One or more fields contain incorrect values:

活动日志JSON:

    "status": {
        "value": "Failed",
        "localizedValue": "Failed"
    },
    "subStatus": {
        "value": "BadRequest",
        "localizedValue": "Bad Request (HTTP Status Code: 400)"
    },
    "submissionTimestamp": "2019-01-15T18:14:14.0661262Z",
    "subscriptionId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "properties": {
        "statusCode": "BadRequest",
        "serviceRequestId": "48862d28-6483-4403-b671-016284d212e3",
        "statusMessage": "{\"error\":{\"code\":\"ValidationError\",\"message\":\"One or more fields contain incorrect values:\",\"details\":[{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): Unable to import API from WSDL\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): {\\\"events\\\":[{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"ParsingXMLStarted\\\",\\\"message\\\":\\\"Started parsing XML\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"ParsingXMLComplete\\\",\\\"message\\\":\\\"Completed parsing XML\\\"},{\\\"level\\\":\\\"Verbose\\\",\\\"event\\\":\\\"WsdlImportRuleVerifyWadl11Schema\\\",\\\"message\\\":\\\"WSDL validated against XML Schema\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"WsdlPrecheckComplete\\\",\\\"message\\\":\\\"Completed WSDL verification. WSDL is considered valid.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"WsdlParsingStarted\\\",\\\"message\\\":\\\"Service :  Endpoint : \\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"WsdlIdentification\\\",\\\"message\\\":\\\"WsdlVersion: 'Wsdl11' TargetNamespace: 'http://tempuri.org/cpsh2h/serviceh2h'.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"LoadedSchema\\\",\\\"message\\\":\\\"Target Namespace: 'http://tempuri.org/cpsh2h/serviceh2h'.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"LoadedSchemas\\\",\\\"message\\\":\\\"Loaded '1' schemas.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"LoadedTypes\\\",\\\"message\\\":\\\"Loaded '9' types.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"LoadedMessages\\\",\\\"message\\\":\\\"Loaded '18' messages.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"LoadedInterfaces\\\",\\\"message\\\":\\\"Loaded '3' interfaces.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"LoadedBindings\\\",\\\"message\\\":\\\"Loaded '4' bindings.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"LoadedServices\\\",\\\"message\\\":\\\"Loaded '1' services.\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"WsdlParsingComplete\\\",\\\"message\\\":\\\"Parsed 3 operations and 18 messages \\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"ApiType\\\",\\\"message\\\":\\\"Creating SOAP Passthrough API\\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"APICreated\\\",\\\"message\\\":\\\"Name : serviceh2h Service Url: https://test.somedomain.com/cpsh2h/serviceh2h.asmx \\\"},{\\\"level\\\":\\\"Informational\\\",\\\"event\\\":\\\"XsdParsing\\\",\\\"message\\\":\\\"Starting to parse http://tempuri.org/cpsh2h/serviceh2h\\\"}]}\"}]}}"
    },
    "relatedEvents": []


推荐答案

基于日志,我认为问题出在架构文件(XSD),而不是WSDL.
您可以验证架构是否正确吗?

Based on the log, I believe the problem is with the schema file (XSD) and not the WSDL.
Could you validate if the schema is correct?

您可能为此使用XML编辑器.像VS Code一样,您可以安装 XML语言支持扩展.

You could probably use an XML Editor for this. Like for VS Code, you could install the XML Language Support extension.


这篇关于WSDL导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆