问题
I have an application which needs to send an HTTP POST request from the client side to a server every half an hour. The server would then update a database with the parameters sent by the client. My question is how do I initiate a HTTP Post request to the server from the client through Worklight?
回答1:
You start by reading the server-side development section of the IBM Worklight Getting Started page:
http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#server-side-development
Specifically, these modules:
- HTTP adapter – Communicating with HTTP back-end systems
- Invoking adapter procedures from client applications
Each module has an exercise as well as a sample application.
There is more information in the IBM Worklight Information Center.
回答2:
Did you try adapters? Namely an http adapter.
来源:https://stackoverflow.com/questions/17471483/ibm-worklight-sending-http-post-request-from-the-client-side