Invoking WSDL Default Service

This section provides a tutorial example on how to access the default service of a given WSDL document and invoke a given operation using quick access syntax.

How to Invoke WSDL Default Service with Zeep Library? The WSDL default service is defined as the first service specified in a WSDL document. The "service" attribute of a zeep.client.Client object provides you a quick access of the default service.

So for the WSDL document, Hello_WSDL_11_SOAP, used in the previous tutorial, the following two statements are equivalent:


client.bind('helloService', 'helloPort')

Operation list members are also defined as attributes in a zeep.proxy.ServiceProxy object. So the following two statements are equivalent:



Here is Python script example that invokes the default service and call the "Hello" operation using quick access syntax:

#- Copyright (c) 2019 All Rights Reserved.
import sys
from zeep import Client

wsdl = ""
if (len(sys.argv)>1):
  wsdl = sys.argv[1];

client = Client(wsdl);
result = client.service.Hello("Hello from client.");

Run the test script with default WSDL 1.1 document. It worked well too.

herong$ python3 

      Hello from server -

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

 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

Python SOAP Client: Zeep

 What Is Zeep Python Library

 Installing Python Engine on macOS

 Installing Zeep Library

 Parsing WSDL Documents with Zeep Library

 Invoking WSDL Services with Zeep Library

Invoking WSDL Default Service

 WSDL 2.0 Not Supported by Zeep Library

 WSDL Related Terminologies

 Archived Tutorials


 Full Version in PDF/EPUB