Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Accessing a service"

Line 1: Line 1:
Note:  In EDT version .7, a service is accessible only from a Rich UI application. 
+
[[#EDT_version_.8|]]
 
+
:
:[[#EDT_version_.7|EDT version .7]]  
+
::[[#Accessing_a_dedicated_service_1|Accessing a dedicated service]]
+
::[[#Accessing_an_EGL_REST-RPC_service_1|Accessing an EGL REST-RPC service]]
+
 
+
:[[#EDT_version_.8|EDT version .8]]
+
  
 
= EDT version .7  =
 
= EDT version .7  =
  
In this version, you declare a service-access variable and use it in a call statement.
+
In EDT version .7, a service is accessible only from a Rich UI application, and the access process uses the following pattern:  you declare a service-access variable and use it in a call statement.  
  
 
== Accessing a dedicated service  ==
 
== Accessing a dedicated service  ==
 
 
 
 
 
 
 
 
  
 
== Accessing an EGL REST-RPC service  ==
 
== Accessing an EGL REST-RPC service  ==

Revision as of 11:12, 9 February 2012

[[#EDT_version_.8|]]

EDT version .7

In EDT version .7, a service is accessible only from a Rich UI application, and the access process uses the following pattern:  you declare a service-access variable and use it in a call statement.

Accessing a dedicated service

Accessing an EGL REST-RPC service

Accessing a third-party REST service

EDT version .8







// From a a Access a dedicated service
 
 
 
 
 
 
 
http HttpRest{request.uri="http:host\\myService"};
srvc IRest?;
srvc = ServiceLib.completeBind(srvc, http);

Accessing HTTP request headers

http HttpRest{};
http.request.headers = new Dictionary { param1 = "a value to pass to my service" };
srvc IRest?{@Resource {}};
srvc = ServiceLib.completeBind(srvc, http);

HTTP request and response

function invokeDoSomething()
    call srvc.doSomething() returning to serviceCallback;
end
 
function serviceCallback(returnValueOne String, callbackHttp IHTTP in)
  // process callback request or response
end

Back to the top