developer:javalibrary

USAePay Java Library

USAePay offers two java libraries (in Jar form) that provide an easy to use interface to our advanced soap API. One version of the library uses the JAX-WS library and the other uses the JAX-RPC library. Most users will want to pick the JAX-WS version unless they are in an older environment or can only support JAX-RPC.

USAePay API Jax-WS Library

Provides com.usaepay.api.jaxws.*

The JAX-WS version of the library is built against the doc/literal version of our soap interface. This version is slightly more efficient as the message sizes are smaller. This library has been tested against JAX-WS (2.x) that ships with Sun's Java SE 1.6+ (and available in application servers such as GlassFish). It has also been tested against Apache Foundation's opensource CFX library.

See our Java Jax-WS Installation Guide for more information on downloading and installing the Jax-WS version of the library.

USAePay API Jax-RCP Library

Provides com.usaepay.api.jaxrpc.*

The JAX-RPC version of the library is built against the rpc/encoded version of our soap interface. Java support for RPC has traditionally been weaker than that of doc/literal. This version of the library relies on the JAX-RPC library which is included in Sun's Java Web Services Developer Pack 1.6. The library has been tested using NetBeans 6.7.

See our Java Jax-RPC Installation Guide for more information on downloading and installing the Jax-RPC version of the library.

Documentation and Examples

We have made an effort to keep the syntax of both libraries consistent. The names of available methods and objects mirror those in the Soap API and can be found in the SOAP API Documenation. Examples of each method are provided on the documentation page for the method. For example, an example of the runSale method can be found of the runSale method page.

developer/javalibrary.txt · Last modified: 2009/09/08 09:41 by tem

Page Tools