SOAP API sample source code
This reference provides the SOAP API sample code in multiple programming languages.
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.
Java
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 http://ws.apache.org/axis/.
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.
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.
C#
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.
.NET
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
PHP
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
Ruby
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.
XML
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