Difference between revisions of "RPCService"

From OpenKM Documentation
Jump to: navigation, search
Line 3: Line 3:
 
== Example ==
 
== Example ==
 
<source lang="java">
 
<source lang="java">
                        ServiceDefTarget endPoint = (ServiceDefTarget) messageService;
+
ServiceDefTarget endPoint = (ServiceDefTarget) messageService;
endPoint.setServiceEntryPoint(RPCService.MessageService);
+
endPoint.setServiceEntryPoint(RPCService.MessageService);
messageService.deleteSent(1, new AsyncCallback<Object>() {
+
messageService.deleteSent(1, new AsyncCallback<Object>() {
@Override
+
        @Override
public void onSuccess(Object result) {
+
public void onSuccess(Object result) {
}
+
}
 
 
@Override
+
@Override
public void onFailure(Throwable caught) {
+
public void onFailure(Throwable caught) {
}
+
}
});
+
});
 
</source>
 
</source>

Revision as of 13:28, 8 December 2010

RPCService class defines all RPC constants service that can be used

Example

ServiceDefTarget endPoint = (ServiceDefTarget) messageService;
endPoint.setServiceEntryPoint(RPCService.MessageService);
messageService.deleteSent(1, new AsyncCallback<Object>() {
        @Override
	public void onSuccess(Object result) {
	}
				
	@Override
	public void onFailure(Throwable caught) {
	}
});