WsResourceClient resource_client = new WsResourceClient(repr);
resource_client.setTrace(tracing);
resource_client.getResourcePropertyDocument();
RelationshipsClient rc = new RelationshipsClient(epr);
rc.setTrace(tracing);
QName names[] = {
new QName("http://resource.management.osgi/Bundle","Requires","osgi")
};
rc.queryRelationshipsByType(names);
//Query service relationships
epr = new EndpointReference(sepr.getAddress());
parms = sepr.getParameters();
for(int i=0;i<parms.length;i++){
epr.addParameter(parms[i]);
}
rc = new RelationshipsClient(epr);
rc.setTrace(tracing);
QName service_names[] = {
new QName("http://resource.management.osgi/Service","ServiceProvider","osgi")
};
rc.queryRelationshipsByType(service_names);
}
catch (Throwable error)
{
error.printStackTrace();