A Sample WSDL 1.1 Document

This section describes a sample WSDL 1.1 document, which defines a Web service, helloService, with an operation called Hello.

Here is a simple example of WSDL 1.1 document represented in XML format, Hello_WSDL_11_SOAP.wsdl:

<?xml version="1.0"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

    Copyright (c) 2007 by Dr. Herong Yang, herongyang.com
    All rights reserved

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      <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">


In this WSDL 1.1 sample document,

This sample WSDL document is also available at http://www.herongyang.com/Service/Hello_WSDL_11_SOAP.wsdl.

Last update: 2007.

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

 WSDL 20 Programming APIs and Testing Tools

Introduction to WSDL 1.1

 What Is WSDL 1.1?

A Sample WSDL 1.1 Document

 WSDL 1.1 Framework and Extensions

 WSDL 1.1 Document Structure and Syntax

 WSDL 1.1 Binding Extension for SOAP 1.1

 soapUI 3.0.1 - Web Service Testing Tool

 WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles

 PHP SOAP Extension in PHP 5.3.1

 Using WSDL in Perl with SOAP::Lite 0.710

 Using WSDL Document in Java with Axis2 1.4.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


 PDF Printing Version