Files and Libraries

The following files and libraries are available:

Java Client Library

Created 04.08.2020 09:46:53

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 + "/api/v1/delivery/{deliveryid}/itemposition"); JAXBContext context = JAXBContext.newInstance( CreatedDeliveryPositionEntry.class, CreateDeliveryItemPositionEntry.class ); java.net.URLConnection connection = url.openConnection(); connection.setDoOutput(true); connection.connect(); Unmarshaller unmarshaller = context.createUnmarshaller(); Marshaller marshaller = context.createMarshaller(); marshaller.marshal(createDeliveryItemPositionEntry, connection.getOutputStream()); CreatedDeliveryPositionEntry result = (CreatedDeliveryPositionEntry) 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(); CreatedDeliveryPositionEntry result = client.resource(baseUrl + "/api/v1/delivery/{deliveryid}/itemposition") .entity(createDeliveryItemPositionEntry) .post(CreatedDeliveryPositionEntry.class); //handle the result as needed...

Files

name size description
heliumv-client.jar 244,88K The binaries for the Java client library.
heliumv-client-sources.jar 182,23K The sources for the Java client library.

Java JSON Client Library

Created 04.08.2020 09:46:54

Introduction

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

REST Example (Raw Jackson)

java.net.URL url = new java.net.URL(baseURL + "/api/v1/delivery/{deliveryid}/itemposition"); ObjectMapper mapper = new ObjectMapper(); java.net.URLConnection connection = url.openConnection(); connection.setDoOutput(true); connection.connect(); mapper.writeValue(connection.getOutputStream(), createDeliveryItemPositionEntry); CreatedDeliveryPositionEntry result = (CreatedDeliveryPositionEntry) mapper.readValue( connection.getInputStream(), CreatedDeliveryPositionEntry.class ); //handle the result as needed...

Files

name size description
heliumv-json-client.jar 236,37K The binaries for the Java JSON client library.
heliumv-json-client-sources.jar 173,32K The sources for the Java JSON client library.