解析wsdl时出现异常

l24*_*c4l 7 java wsdl exception nullpointerexception

Description Resource    Path    Location    Type
WS-I: A problem occured while running the WS-I WSDL conformance check:
org.eclipse.wst.wsi.internal.analyzer.WSIAnalyzerException: null

  Nested exception is: 

  java.lang.NullPointerException
The WSDLAnalyzer was unable to validate the given WSDL File.
ChangedElements.wsdl    /wstest/WebContent/wsdl line 1  WSDL Problem
Run Code Online (Sandbox Code Playgroud)

更新:

Netbeans给出了这个错误:

cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'. [7]
Run Code Online (Sandbox Code Playgroud)

wsdl的一部分:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                    xmlns:tns="http://www.example.org/xxx/"
                    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    name="xxx"
                    targetNamespace="http://www.example.org/xxx/">
Run Code Online (Sandbox Code Playgroud)

小智 0

我遇到了同样的问题,它似乎主要是引用 dotnet WCF 和 WSE 服务。

我发现唯一有效的方法是手动构建 WSDL。