Table of contents
- 1. Overview
- 2. Java
- 3. Microsoft Azure
- 4. .NET
- 5. PHP
- 6. Ruby on Rails
- 7. XML
- 8. Third-Party Libraries
- 9. Related
- 1. Overview
- 2. Java
- 3. Microsoft Azure
- 4. .NET
- 5. PHP
- 6. Ruby on Rails
- 7. XML
- 8. Third-Party Libraries
- 9. Related
Overview
Here you will find sample code in PHP, Java, .NET, and XML. The source code provided can help you quickly learn the Z-Commerce API as well as how to implement SOAP-based web services.
Important: This code is provided as an example of the code that you can use with Zuora. You must customize the sample code for use with your system.
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.
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.
Microsoft Azure
The Azure sample code shows how to handle make calls with the Zuora API, as well as how to setup an online storefront that captures orders.
.NET
The .NET sample code shows how to handle authentication as well as querying for objects in the Z-Commerce Platform.
PHP
The PHP sample code gives illustrative examples for how to handle authentication, querying, updating and deleting. This PHP sample code requires PHP 5.
Ruby on Rails
This sample source code package has two key applications: A console based application that shows the basics of the Zuora API, and a Ruby on Rails applications shows "sign up now" web-based store application.
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.
Third-Party Libraries
- Ruby: This library allows you to interact with Zuora billing platform directly using familiar ActiveModel based objects. Thanks to Wildfire.

Comments