10.07.2015 Views

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Getting StartedQuick Start22f. Logout to invalidate the current session.service.logout();Building an Application with Java using Apache AxisThis section provides details on how to use the Apache Axis framework (versions 1.3 and 1.4)to build a <strong>SuiteTalk</strong> application.Note: The Java sample application available on the Developer portal provides an indepthlook at how to build an application using Apache Axis and <strong>NetSuite</strong> <strong>Web</strong>services. See Downloading Sample Applications for more information.To use the Apache Axis framework with <strong>NetSuite</strong> <strong>Web</strong> services:1. Install the Java 2 <strong>Platform</strong>.Download and install the Java 2 <strong>Platform</strong>, Standard Edition, version 1.4 or higher fromhttp://java.sun.com/j2se/1.4.2/download.html. Ensure that the executables areavailable through the system path.2. Install Apache Axis.a. Download and install Apache Axis from http://ws.apache.org/axis/.Important: Only Axis versions 1.3 and 1.4 are supported in <strong>NetSuite</strong> <strong>Web</strong> services.b. Download and install the Apache Axis patch for cookie management from<strong>NetSuite</strong>: http://www.netsuite.com/portal/developers/resources/suitetalk-sampleapplications.shtmlThe <strong>NetSuite</strong> <strong>Web</strong> service implementation requires the client application tosupport multiple cookies on one line, as is the standard for cookies. There is a bugin Apache Axis that puts each cookie on its own line in the HTTP Headers. Thepatch version of the axis.jar fixes this problem. Once downloaded, replace theexisting axis.jar file in the lib directory of your Axis root directory with thisversion.c. Once installed, set an environment variable called AXIS_HOME to point to theAxis installation directory.3. Install Apache Ant (Optional).Download and install Apache Ant, version 1.5 or higher, from http://ant.apache.org/.Apache Ant is a Java-based build tool that facilitates automation of the build process,including generating the proxy classes from the <strong>NetSuite</strong> WSDL.Please see the build.xml file in the Java sample application for a complete Ant buildscript.4. Configure Java to generate unreferenced types.Set the all parameter in your axis-wsdl2java ant task to true. For example:<strong>SuiteTalk</strong> <strong>Platform</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!