2017-03-16 1 views
0

であってはならない"DescriptionElement" はどのようなものですが、私は、NetBeansのJavaにWSDLとXSDを変換しようとすると、私はこのエラーを持っているWSDL 2.0名前空間」

SEVERE:ウッデン[エラー]、0: 0、WSDL520、拡張要素 「org.apache.woden.wsdl20.xml.DescriptionElement」のコンテキスト内の「{http://www.w3.org/ns/wsdl}型」は、 WSDL 2.0名前空間内にあってはなりません。mar 16、2017 12:43:12 EM org.apache.woden.internal.ErrorHandlerImpl warning

nはすべてのファイルの一部は以下の通りです:

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"> 

答えて

0

XSDおよびWSDLとの間のリンクが適切に確立されなければなりません。したがって、記述部分を変更して保証する必要があります。 Altovaのソフトウェアは、他の操作を作成するために使用できるシンプルなWSDLファイルを生成するのに本当に役立ちます。

WSDLファイル

<?xml version="1.0" encoding="UTF-8"?> 
<wsdl:description 
    targetNamespace="http://new.webservice.namespace" 
    xmlns:wsdl="http://www.w3.org/ns/wsdl" 
    xmlns:wsoap="http://www.w3.org/ns/wsdl/soap" 
    xmlns:whttp="http://www.w3.org/ns/wsdl/http" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns:tns="http://new.webservice.namespace" 
    xmlns:inboundOutboundFlight="http://www.spads.lfv.se/2017/service/flightElements" 
    xmlns:wsdlx="http://www.w3.org/ns/wsdl-extensions"> 
<wsdl:types> 
    <xs:import namespace="http://www.spads.lfv.se/2017/service/flightElements" schemaLocation="AirportFlightInformationElements.xsd"/> 
</wsdl:types> 

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"> 

Altova software

また、説明は以下の構文でなければなりません

関連する問題