Was this article helpful?

Sample Source Code

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.

icon_important.gifImportant: 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.

Download the Quick Start for Azure

.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 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.

Download the Ruby On Rails sample code

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

Third-Party Libraries

  • RubyThis library allows you to interact with Zuora billing platform directly using familiar ActiveModel based objects. Thanks to Wildfire.
Was this article helpful?
Pages that link here
Page statistics
1760 view(s), 12 edit(s) and 4786 character(s)

Tags

Comments

You must to post a comment.

Attach file

Attachments

FileVersionSizeModifiedOptions