SuiteTalk

Sample Applications


Java and .Net Samples

In order to familiarize yourself with NetSuite Web services, we encourage you to download our sample applications available in Java or Microsoft .NET. These are command-line driven applications that illustrate how to use some of the key features of the platform. The sample applications are built with the NetSuite Web services version 2009.2.

The Microsoft.NET C# sample applications require version 2.0 of the Microsoft.NET framework.

The Java sample applications require version 1.2 or higher of the Apache Axis framework and a NetSuite patch for cookie management (please see FAQ for details). The following patches are available along with the source code containing the change. Please download the appropriate patch for the version of Axis that you are using.

CRM sample applications

ERP sample applications



PHP Toolkit

This toolkit simplifies programming Web Services with PHP5. The toolkit includes a core file containing all SuiteTalk classes, core objects and operations, as well as a client-side deserializer. Additionally, a directory file containing all references to version 2009.2 creates an associative array of records and mapping to our complex namespaces and record fields to reduce code lines and ease programming in PHP.

The toolkit comes with a sample application modeled after a typical eCommerce integration.

Installation Instructions:

  1. Download the toolkit PHP_Toolkit_2009_2 file.
  2. Unzip the file and save the toolkit files to your project folder in your IDE.
  3. Start using the toolkit by adding a require_once statement. For example:
    require_once 'PHPtoolkit.php';
  4. Choose where to send your requests when you create your client object by adding one of the following statements:
    . $myNSclient = new nsClient( nsHost::live );
    . $myNSclient = new nsClient( nsHost::beta );
    . $myNSclient = new nsClient( nsHost::sandbox );
    . $myNSclient = new nsClient( "http://localhost:5050" );
  5. Enable SOAP by editing the php.ini file in C:\Windows. Add the line "extension=php_soap.dll" under Dynamic Extensions.

To log SOAP, add a folder called nslog under the same folder where you have placed PHPtoolkit.php. The toolkit will automatically send SOAP to this folder. If you want to stop logging SOAP, rename the folder.

 


 
Copyright © 1998 - NetSuite Inc. All rights reserved.