开发者

Exception while parsing wsdl

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    /wst开发者_Go百科est/WebContent/wsdl line 1  WSDL Problem

Update:

Netbeans gives this error:

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

The part of 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/">


Look and vote at these bugs:

  • https://bugs.eclipse.org/bugs/show_bug.cgi?id=323157
  • https://bugs.eclipse.org/bugs/show_bug.cgi?id=334057

EDIT: I have found the problem - but the solution got stuck somewhere in WTP team:

  • https://bugs.eclipse.org/bugs/show_bug.cgi?id=323157#c7
  • https://github.com/eclipse/webtools.webservices/pull/1


Change the WSDL Definition to

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

note the Trailing Slashes being removed


I'm having the same issue and it appears to be mainly on referencing dotnet WCF and WSE services.

The only thing I have found to work is to build up the WSDL manually.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜