【发布时间】:2017-03-16 12:17:40
【问题描述】:
当我尝试在 Netbeans 中将 WSDL 和 XSD 转换为 Java 时出现此错误。
严重:Woden[错误],0:0,WSDL520,扩展元素 "{http://www.w3.org/ns/wsdl}type" 在上下文中 “org.apache.woden.wsdl20.xml.DescriptionElement”不能在 WSDL 2.0 命名空间。 2017 年 3 月 16 日 12:43:12 EM org.apache.woden.internal.ErrorHandlerImpl 警告
每个文件的描述部分如下:
WSDL 文件
<?xml version="1.0" encoding="utf-8" ?>
<description
targetNamespace="http://www.spads.lfv.se/2017/service/afip"
xmlns="http://www.w3.org/ns/wsdl"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://www.w3.org/ns/wsdl"
xmlns:tns="http://www.spads.lfv.se/2017/service/wsdl/publisher"
xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsdlx="http://www.w3.org/ns/wsdl-extensions"
xmlns:inboundOutboundFlight="http://www.spads.lfv.se/2017/service/flightElements"
xmlns:FID="http://www.spads.lfv.se/2017/service/FlightID">
XSD 文件
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.spads.lfv.se/2017/service/flightElements"
xmlns:inboundOutboundFlight = "http://www.spads.lfv.se/2017/service/flightElements">
【问题讨论】: