主权项 |
1. A method for communicating information between a mobile device and a computer system that provides a legacy application program interface (API) such as a web services API to facilitate access to services of the computer system, the method comprising:
receiving, at the computer system, a request from the mobile device to invoke a process of the legacy API, wherein the request specifies one or more input values associated with at least some required input parameters of the process, wherein the one or more input values are provided in a first format that is different from a second format utilized by the legacy API for communicating data; determining, by the computer system, required input parameters of the process of the legacy API; generating, by the computer system, an input data structure in the second format that includes an entry for each of the required input parameters; determining, by the computer system, one or more parameters of the required input parameters that are associated with the one or more input values communicated in the request; setting values of entries in the input data structure associated with the one or more determined parameters to corresponding one or more input values in the request; generating a message to call the process of the legacy API, wherein the message is formatted in the second format and includes the input data structure. |