Dedicated service changes [message #810252] |
Wed, 29 February 2012 17:27  |
Eclipse User |
|
|
|
Hi Folks,
Some changes have been made today to dedicated services that will probably break your RUI applications. Please read this if you use the nightly builds, otherwise this won't pertain to you until the next milestone is released.
The call statement was updated not too long ago to support a new "using" clause, where you specify a variable that tells the call how to reach the service. A new type "HttpProxy" has been added to the system parts which you can specify for the using clause when invoking a dedicated service. The DedicatedService annotation has been removed, and you must now use the using clause, passing in an HttpProxy.
Old syntax:
serviceVariable MyService{@DedicatedService};
call serviceVariable.functionName() returning to handleResponse onException serviceExceptionHandler;
New syntax (two usages):
When referencing a service part the HttpProxy doesn't need anything set in the variable:
call MyService.functionName() using new HttpProxy returning to handleResponse onException serviceExceptionHandler;
When referencing an interface part you must specify the implementation name:
http HttpProxy = new HttpProxy("server.MyService");
call IMyService.functionName() using http returning to handleResponse onException serviceExceptionHandler;
Here's the wiki page about service access (feel free to fill in any gaps!): wiki.eclipse.org/ EDT:Accessing_a_service (delete the space character, the forum won't allow me to post links)
-Justin
|
|
|
|
|
|
|
|
Re: Dedicated service changes [message #836405 is a reply to message #835587] |
Wed, 04 April 2012 08:56  |
Eclipse User |
|
|
|
Hi Andy,
When you do not specify the deployment descriptor file in your binding (such that it uses the default), a dedicated service will use the default deployment descriptor specified on the *RUI* project, not the project containing the service. This is to simulate how a deployed application would behave.
A REST service invocation would use the default deployment descriptor specified on the project containing the service.
I tried this scenario out and got an error message that indicated it was looking in the RUI project's DD for the binding. What was the message you were seeing?
-Justin
|
|
|
Powered by
FUDForum. Page generated in 0.05460 seconds