Files and Libraries

Java XML Client Library

Created June 4, 2019

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

The Java 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 resources that are published by this application.

Resources Example (Raw JAXB)
java.net.URL url = new java.net.URL(baseURL + "/management/acls");
JAXBContext context = JAXBContext.newInstance( byte[].class, byte[].class );
java.net.URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.connect();

Unmarshaller unmarshaller = context.createUnmarshaller();
Marshaller marshaller = context.createMarshaller();
marshaller.marshal(aclPropertiesType, connection.getOutputStream());
AclReferenceType result = (AclReferenceType) unmarshaller.unmarshal( connection.getInputStream() );
//handle the result as needed...
    
Resources Example (Jersey client)
javax.ws.rs.client.Client client = javax.ws.rs.client.ClientBuilder.newClient();

AclReferenceType result = client.target(baseUrl + "/management/acls")
  .post(javax.ws.rs.client.Entity.entity(aclPropertiesType, "application/xml"), AclReferenceType.class);

//handle the result as needed...
    

Files
name size description
ecms-webapp-tomcat-xml-client.jar 116.91K The binaries for the Java XML client library.
ecms-webapp-tomcat-xml-client-xml-sources.jar 106.34K The sources for the Java XML client library.

ns0.xsd

Created June 4, 2019

Files
name size description
ns0.xsd 152.34K