Loading Incorrect WSDL Documents

This section provides a tutorial example to test what will happen when loading an incorrect WSDL document to SoapUI. SoapUI is not good WSDL document validator. It will not give any loading errors for incorrect WSDL documents.

In this tutorial, I want to see how SoapUI handles errors in a WSDL document.

1. To do this, I created WSDL document with 2 errors:

<?xml version="1.0"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
<!-- Error 1: targetNamespace must match the xmlns:hy definition -->

    Copyright (c) 2007 HerongYang.com. All Rights Reserved.

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- Error 2: missing targetNamespace in xsd:schema -->

      <xsd:element name="HelloRequest" type="xsd:string"/>
      <xsd:element name="HelloResponse" type="xsd:string"/>

  <wsdl:message name="helloInputMessage">
    <wsdl:part name="helloInputPart" element="hy:HelloRequest"/>
  <wsdl:message name="helloOutputMessage">
    <wsdl:part name="helloOutputPart" element="hy:HelloResponse"/>

  <wsdl:portType name="helloPortType">
    <wsdl:operation name="Hello">
      <wsdl:input name="helloInput"
      <wsdl:output name="helloOutput"

  <wsdl:binding name="helloBinding" type="hy:helloPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="Hello">
      <wsdl:input name="helloInput">
        <soap:body use="literal"/>
      <wsdl:output name="helloOutput">
        <soap:body use="literal"/>

  <wsdl:service name="helloService">
    <wsdl:port name="helloPort" binding="hy:helloBinding">


2. Run SoapUI and create a new project called "TestProject" without initial WSDL document.

3. Right click on "TestProject" and select "Add WSDL". A small dialog box shows up.

4. Browse and find "Hello_WSDL_11_SOAP_Error.wsdl" to load it.

Surprisingly, the WSDL document is loaded without any errors! Binding "helloBinding" shows up in the project object tree. But operation "Hello" is not showing.

Conclusion - SoapUI is not good WSDL document validator. It will not give any loading errors for incorrect WSDL documents. But it will not show you the operation object, if it is not defined correctly in the WSDL document.

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

 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

 Validating and Inspecting WSDL 1.1 Documents

 Using Interface Viewer on Bindings

 Generating HTML Documentations On Bindings

 Generating SOAP Requests on Operations

 Submit SOAP Requests to the Server

 MockService - Web Service Simulator

 Submitting Request to MockService

Loading Incorrect WSDL Documents

 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

 Archived Tutorials


 Full Version in PDF/EPUB