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"

(Removing all content from page)
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
Note:  In EDT version .7, access is only from a Rich UI application. 
 
  
:[[Accessing a service in EDT version .7|Accessing a service in EDT version .7]]
 
 
:[[Accessing a service in EDT version .8|Accessing a service in EDT version .8]]
 
 
= Accessing a service in EDT version .7 =
 
 
 
 
 
 
 
 
= Accessing a service in EDT version .8 =
 
<br>
 
 
 
<source lang="java">
 
 
// From a a Access a dedicated service
 
 
 
 
 
 
 
 
http HttpRest{request.uri="http:host\\myService"};
 
srvc IRest?;
 
srvc = ServiceLib.completeBind(srvc, http);
 
</source>
 
 
'''Accessing HTTP request headers'''
 
 
<source lang="java">
 
http HttpRest{};
 
http.request.headers = new Dictionary { param1 = "a value to pass to my service" };
 
srvc IRest?{@Resource {}};
 
srvc = ServiceLib.completeBind(srvc, http);
 
</source>
 
 
'''HTTP request and response'''
 
 
<source lang="java">
 
function invokeDoSomething()
 
    call srvc.doSomething() returning to serviceCallback;
 
end
 
 
function serviceCallback(returnValueOne String, callbackHttp IHTTP in)
 
  // process callback request or response
 
end
 
</source>
 

Latest revision as of 12:06, 10 February 2012

Back to the top