Topic
2 replies Latest Post - ‏2013-03-23T07:09:14Z by SystemAdmin
SystemAdmin
SystemAdmin
6195 Posts
ACCEPTED ANSWER

Pinned topic Service call works in Community edition but not in RBD version 7.5.1.8

‏2013-03-20T08:57:41Z |
Hi i am new to Rich-ui programming,

I am using the licensed RBD version 7.5.1.8 , i am trying to call a service from the UI handler (simple hello world program) when i test my program i am getting the below error message,

CRRUI1083E] An error occurred while the click browser event was being handled.
CRRUI3651E Service binding key : 'newserv' does not exist in the deployment descriptor 'Richproj'
CRRUI2094E Here are the EGL function calls leading to this error:

ServiceBinder.ServiceBinder.getBinding() native JavaScript
ServiceLib.ServiceLib.bindService() native JavaScript
final1.GoButton_onClick() native JavaScript
Button.Widget.runEventHandlers() native JavaScript

I think either it may be a setting problem in RBD for rich UI or with the deployment descriptor .

I have created a entry in deployment descriptor as well but still facing the same problem.

(This is not a SOAP or REST services)

code written for calling the service in RBD version 7.5.1.8,

function GoButton_onClick(event Event in)
newservice newservice {@bindService};
call newservice.sayhello1(name.text) returning to displayresults onException ServiceLib.serviceExceptionHandler;
end

The same code is working in EGL commuity edition but not in RBD version 7.5.1.8, in community edition i never added any entry in the deployment descriptor.It is working perfectly fine.

code for calling the service in community edition ,

function GoButton_onClick(event Event in)
newservice newservice {};
call newservice.sayhello1(name.text) returning to displayresults onException ServiceLib.serviceExceptionHandler;
end

Can anyone help me how to do it .

Thanks
Updated on 2013-03-23T07:09:14Z at 2013-03-23T07:09:14Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6195 Posts
    ACCEPTED ANSWER

    Re: Service call works in Community edition but not in RBD version 7.5.1.8

    ‏2013-03-20T18:16:14Z  in response to SystemAdmin
    Service calls in the licensed RBD are done a bit differently compared to the open source version of EGL;

    function doServiceCall()
     
            myService TheService{@dedicatedService};
            call myService.process(parm1) 
               returning to myServiceReturn
                    onException ServiceLib.serviceExceptionHandler;
        end 
     
        function myServiceReturn(myRecord TheRecord in )
     
           :
           :
     
        end
    


    I hope that helps.
    Updated on 2014-03-25T04:35:42Z at 2014-03-25T04:35:42Z by iron-man
    • SystemAdmin
      SystemAdmin
      6195 Posts
      ACCEPTED ANSWER

      Re: Service call works in Community edition but not in RBD version 7.5.1.8

      ‏2013-03-23T07:09:14Z  in response to SystemAdmin
      Dear BFoster,

      First of all thanks for the reply ,

      I have already tried your solution with the dedicated services , i am getting the below error,

      coding

      function Go_Button_onClick(event Event in)
      // Dedicated service
      testnormal normal{@dedicatedService};
      call testnormal.basic(name.text) returning to dispftn onException ServiceLib.serviceExceptionHandler;

      // REST services (Commented)
      // newrest Irestservice{@BindService};

      // call newrest.basic(name.text) returning to dispftn onException ServiceLib.serviceExceptionHandler;

      end

      IWN.VAL.6619.e 31/23 callhandler - dedicatedService cannot be resolved. At line 31 in file \callservice\EGLSource\screenpkg\callhandler.egl callhandler.egl callservice/EGLSource/screenpkg line 31 EDT Problem
      Do i need to do any setting to avoid this ?
      I created a REST service instead of a normal service,now the call is working fine from the browser, but while testing it in the rbd egl (test through preview ) it is not working,shows the below error. Do we need to test the REST service call always from the browser ?

      An exception has occurred while calling on method: basic
      The body of the request was: {"bindingName":"Irestservice","method":"basic","params":}
      message:EGL1539E An exception occurred while communicating with the service. URL: EGL0001I The error occurred in EGL Rich UI Proxy.
      ServiceKind:REST
      detail1:500
      detail2:FAILED
      detail3:no protocol:

      Please tell help me ,

      Thanks in advance.