Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364543 - Service-related doc is not exactly correct
Summary: Service-related doc is not exactly correct
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ben Margolis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 03:35 EST by Zhi Zhu CLA
Modified: 2017-02-23 14:19 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhi Zhu CLA 2011-11-23 03:35:42 EST
From Help page: "Binding an access variable dynamically"

  you can copy the below example code:
    myService IMyService;    
    myBinding HttpRest{@Resource};
    myBinding.request.encoding = Encoding.json;
    myService = servicelib.completeBind(myService, myBinding);


  Generated Java code has compilation error indicating serviceLib is not existed in Java runtime library.
Comment 1 Ben Margolis CLA 2011-11-24 09:53:10 EST
As of now, the only function in ServiceLib is completeBind, which is used for service access; and service access is not now supported from Java code.

The error in the code is the lack of a question mark after the service type, here:

    myService IMyService?;  

I corrected that error this morning, but you'll need to wait for another build to see the correction.