Skip to main content

SOAP API Sample Source Code


SOAP API Sample Source Code

Our GitHub site provides sample code in PHP, Java, .NET, and XML which demonstrates the use of SOAP-based web services and the Zuora SOAP API.  The links and tips below will help you get started.

The sample code  in GitHub is demonstration purposes only. These sample code examples have worked for in-house and external developers, but is not guaranteed to work in every situation. 


The Java reference application is based on Apache Axis 1.4 and JDK 5.0 (Java 2 Platform Standard Edition Development Kit 5.0). For more information on Apache Axis 1.4, see

The Zuora QuickStart Java Toolkit, available on GitHub, contains code designed to help you begin using Zuora APIs, including the most common use cases and an example signup page.

Running the Java Reference Application

You will need Apache Ant installed. Once you have Ant set up, you can run the reference application by invoking the following command:

ant test run

Ant is a Java-based build tool that uses XML-formatted files to perform the same types of functions as a make file. In addition to running the code, the build.xml file generates the object stubs and compiles and runs the code.


This is a simple UI that uses the Zuora Service C# wrapper to make various calls to Zuora.

Download the C# sample code from Github.


The .NET sample code shows how to handle authentication as well as querying for objects in the Z-Commerce Platform.

Download the .NET sample code


The PHP sample code gives illustrative examples for how to handle authentication, querying, updating and deleting. This PHP sample code requires PHP 5.

Download the PHP sample code


This library will allow you to interact with the Zuora billing platform using ActiveModel based objects. You will need bundler, active_support, savon, and wasabi to use this library.

Download the Ruby sample code from Github.


The XML shows proper SOAP calls for querying, deleting and updating objects as well as using subscriptions and amendments. Whether you develop in PHP, Java, .NET or any other language, the XML can help you quickly debug your SOAP applications.

Download the XML sample code