Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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    /wstest/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/">
like image 229
l245c4l Avatar asked Dec 07 '10 12:12

l245c4l


2 Answers

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
like image 84
Grzegorz Grzybek Avatar answered Sep 28 '22 17:09

Grzegorz Grzybek


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

like image 31
Anandaraja_Srinivasan Avatar answered Sep 28 '22 16:09

Anandaraja_Srinivasan