Files and Libraries

The following files and libraries are available:

Java Client Library

Created Jan 9, 2016 3:30:46 PM

Introduction

The Java client-side library is used to access the Web service API for this application.

The JAX-WS client-side library is used to provide the set of Java objects that can be serialized to/from XML using JAXB. This is useful for accessing the REST endpoints that are published by this application.

REST Example (Raw JAXB)

java.net.URL url = new java.net.URL(baseURL + "/invoiceCategory"); JAXBContext context = JAXBContext.newInstance( ActionStatus.class, InvoiceCategoryDto.class ); java.net.URLConnection connection = url.openConnection(); connection.setDoOutput(true); connection.connect(); Unmarshaller unmarshaller = context.createUnmarshaller(); Marshaller marshaller = context.createMarshaller(); marshaller.marshal(invoiceCategoryDto, connection.getOutputStream()); ActionStatus result = (ActionStatus) unmarshaller.unmarshal( connection.getInputStream() ); //handle the result as needed...

REST Example (Jersey client)

com.sun.jersey.api.client.Client client = com.sun.jersey.api.client.Client.create(); ActionStatus result = client.resource(baseUrl + "/invoiceCategory") .entity(invoiceCategoryDto) .post(ActionStatus.class); //handle the result as needed...

Files

name size description
novaglobalapi-client.jar 259.03K The binaries for the Java client library.
novaglobalapi-client-sources.jar 192.38K The sources for the Java client library.