2010-12-07 50 views
7
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 

更新:異常而解析WSDL

Netbeans中給出了這樣的錯誤:

cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'. [7] 

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/"> 
+0

兩種可能:WSDL根據WS-I是無效的,或工具您正在使用驗證它已損壞。根據您提供的信息,我幾乎可以想到所有信息。 – 2010-12-07 12:29:15

回答

0

我有同樣的問題,它似乎主要是引用dotnet WCF和WSE服務。

我發現的唯一工作是手動構建WSDL。

2

更改WSDL定義

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

注意結尾的斜線被刪除