Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364543

Summary: Service-related doc is not exactly correct
Product: z_Archived Reporter: Zhi Zhu <zhuzhi>
Component: EDTAssignee: Ben Margolis <margolis>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.