PHP Tutorials - Herong's Tutorial Examples - Version 4.00, by Dr. Herong Yang

What Is WSDL?

This section describes what is WSDL - an XML based standard designed to describes protocol bindings and message formats of Web services.

What Is WSDL? WSDL (Web Services Definition Language) is an XML based standard designed to describes protocol bindings and message formats of Web services. WSDL is often pronounced as "Whiz-Dull".

A WSDL document is an XML document written in WSDL to describe Web service. Here is a copy of the WSDL document for the demonstration Web service used in previous sections. You can download one yourself by going to with your Web browser:

<?xml version="1.0"?>
<wsdl:definitions xmlns:wsdl=""

    Copyright (c) 2015,, All Rights Reserved.
    All rights reserved

    <xsd:schema xmlns:xsd=""
      <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=""/>
    <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">


I cannot read this document well before learning the WSDL specifications. But it seems to be describing precisely how this Web service should be used. See my other book: "SOAP Web Service Tutorials - Herong's Tutorial Examples" for more information on SOAP and WSDL.

Last update: 2015.

Table of Contents

 About This PHP Tutorial Book

 Introduction and Installation of PHP 5.6.6

 PHP Script File Syntax

 PHP Data Types and Data Literals

 Variables, References, and Constants

 Expressions, Operations and Type Conversions

 Conditional Statements - "if" and "switch"

 Loop Statements - "while", "for", and "do ... while"

 Function Declaration, Arguments, and Return Values

 Arrays - Ordered Maps

 Configuring and Sending out Emails

 Retrieving Information from HTTP Requests

 Creating and Managing Sessions in PHP Scripts

 Sending and Receiving Cookies in PHP Scripts

 Controlling HTTP Response Header Lines in PHP Scripts

 MySQL Server Connection and Access Functions

 Functions to Manage Directories, Files and Images

SOAP Extension Function and Calling Web Services

 PHP Implementations of SOAP

 Turning on the Default SOAP Extension

 Hello_There.php - First Example of SOAP

 SoapClient - SOAP Client Class and Functions

 Hello_There_Dump.php - Debugging SOAP Messages

What Is WSDL?

 Using SOAP Extension in non-WSDL Mode

 SOAP Server Functions and Examples

 Localization Overview of Web Applications

 Using Non-ASCII Characters in HTML Documents

 Using Non-ASCII Characters as PHP Script String Literals

 Receiving Non-ASCII Characters from Input Forms

 "mbstring" Extension and Non-ASCII Encoding Management

 Managing Non-ASCII Character Strings with MySQL Servers

 Introduction of Class and Object

 Outdated Tutorials


 PDF Printing Version

What Is WSDL? - Updated in 2015, by Dr. Herong Yang