ID targetID = createTargetID(container,target);
// Get and resolve remote service reference
IRemoteServiceReference[] ref = adapter.getRemoteServiceReferences(targetID, org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo.class.getName(), null);
IRemoteService svc = adapter.getRemoteService(ref[0]);
// get proxy
IRemoteEnvironmentInfo proxy = (IRemoteEnvironmentInfo) svc.getProxy();
// Call it!
String osArch = proxy.getOSArch();
// Show result
MessageDialog.openInformation(
window.getShell(),
"ECF Lab 1",
"Target "+target+" has OS Arch="+osArch);