Files and Libraries
The following files and libraries are available:
Java Client Library
Created Jan 8, 2016 6:11:33 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 | 195.10K | The binaries for the Java client library. |
novaglobalapi-client-sources.jar | 142.41K | The sources for the Java client library. |