Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
4 replies Latest Post - ‏2012-12-14T13:01:13Z by pandrbox
pandrbox
pandrbox
22 Posts
ACCEPTED ANSWER

Pinned topic Is there the source of PushBackendEmulator ?

‏2012-12-13T05:45:41Z |
I want to implement standalone Java code calling server side procedure on Worklight adapter like PushBackendEmulator.jar. Is there sample source of PushBackendEmulator ?
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: Is there the source of PushBackendEmulator ?

    ‏2012-12-13T08:11:28Z  in response to pandrbox
    Hi,

    The PushBackendSimulator simply implements the /invoke API.

    You can simply use:
    http://server:port/context/invoke?adapter=adapterName&procedure=procedureName&parameters=

    Make sure to add to your adapter procedure the securityTest "wl_unprotected" when running on an application server.

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • pandrbox
      pandrbox
      22 Posts
      ACCEPTED ANSWER

      Re: Is there the source of PushBackendEmulator ?

      ‏2012-12-14T12:44:55Z  in response to IdanAdar
      I tried to call that URL but responded 404. What can I check ?
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: Is there the source of PushBackendEmulator ?

    ‏2012-12-14T12:54:59Z  in response to pandrbox
    If you have taken my sample URL and update it with the names of your host, port, adapter and procedure, and added the securityTest mentioned to your procedure, and server is running, it should work.

    You will have to provide more information about your scenario.
    Type of application server
    The URL you used
    What have you done in the app

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • pandrbox
      pandrbox
      22 Posts
      ACCEPTED ANSWER

      Re: Is there the source of PushBackendEmulator ?

      ‏2012-12-14T13:01:13Z  in response to IdanAdar
      Sorry, I specified extra context on the URL which is not required. I could call the procedure using that URL, thanks.