Topic
  • 4 replies
  • Latest Post - ‏2012-12-14T13:01:13Z by pandrbox
pandrbox
pandrbox
22 Posts

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

    Re: Is there the source of PushBackendEmulator ?

    ‏2012-12-13T08:11:28Z  
    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

    Re: Is there the source of PushBackendEmulator ?

    ‏2012-12-14T12:44:55Z  
    • IdanAdar
    • ‏2012-12-13T08:11:28Z
    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
    I tried to call that URL but responded 404. What can I check ?
  • IdanAdar
    IdanAdar
    741 Posts

    Re: Is there the source of PushBackendEmulator ?

    ‏2012-12-14T12:54:59Z  
    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

    Re: Is there the source of PushBackendEmulator ?

    ‏2012-12-14T13:01:13Z  
    • IdanAdar
    • ‏2012-12-14T12:54:59Z
    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
    Sorry, I specified extra context on the URL which is not required. I could call the procedure using that URL, thanks.