Validating and Inspecting WSDL Documents

This section provides a tutorial example on loading a WSDL 2.0 document in SoapUI and getting an error message.

One important function of SoapUI is to validate and inspect WSDL documents. Here is what I did to validate and inspect my first WSDL 2.0 document, Hello_WSDL_20_SOAP.wsdl.

1. Run SoapUI and click "File" > "New SOAP Project"

2. On the dialog box, enter these values:

Project Name: Hello-WSDL-20
Initial WSDL: C:\herong\Hello_WSDL_20_SOAP.wsdl
Create Requests: unchecked
Create TestSuite: unchecked
Relative Paths: unchecked

3. Click OK. SoapUI displays an error message:

WSDLException (at /wsdl:description): faultCode=INVALID_WSDL: 
   Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'

As you can see, SoapUI fails to parse the WSDL 2.0 "description" element. It is expecting the WSDL 1.1 "definitions" element.

SoapUI Error When Loading WSDL 2.0 Document
SoapUI Error When Loading WSDL 2.0 Document

Conclusion: SoapUI does not support WSDL 2.0.

See other tutorials in this book on how to use SoapUI to test WSDL 1.1 documents.

Last update: 2018.

Table of Contents

 About This Book

 Introduction to WSDL 2.0

 WSDL 2.0 Document Structure and Syntax

 WSDL Version 2.0 Part 2: Adjuncts

 WSDL 2.0 Document Examples with SOAP Binding

 Using WSDL Document in Java Apache Axis2/Java for WSDL

 Apache Woden for WSDL Documents in Java

SoapUI - Web Service Testing Tool

 What Is SoapUI?

 Downloading and Installing SoapUI

Validating and Inspecting WSDL Documents

 PHP SOAP Extension for WSDL

 Perl SOAP::Lite for WSDL

 Introduction to WSDL 1.1

 WSDL 1.1 Document Structure and Syntax

 WSDL 1.1 Binding Extension for SOAP 1.1

 SoapUI as WSDL 1.1 Testing Tool

 WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles

 PHP SOAP Extension for WSDL 1.1

 Perl SOAP::Lite for WSDL 1.1

 Apache Axis2/Java for WSDL 1.1

 Using WSDL2Java to Generate Web Service Stub Classes

 WSDL 1.1 Binding Extension for SOAP 1.2

 WSDL 1.1 and SOAP 1.2 Examples - Document and RPC Styles

 SOAP 1.2 Binding - PHP, Java and Perl Clients

 WSDL Related Terminologies

 Outdated Tutorials

 References

 Full Version in PDF/EPUB