DYNAMIC WEB SERVICES SYSTEM AND METHOD
A Dynamic Web Service server may facilitate custom Enterprise Application interface development with little or no developer input by dynamically creating a web service for performing a particular transaction according to a transaction map. An Enterprise Application client device may create a transaction map by “recording” a transaction between an Enterprise Application client and an Enterprise Application server and mapping transaction fields to a custom interface generated to collect data for re-performing the recorded transaction. The Enterprise Application client device may call the dynamic web service, and the Dynamic Web Service server may then perform the recorded transaction using input data collected in the custom interface.
Latest WINSHUTTLE, LLC Patents:
This application claims the benefit of priority to U.S. Provisional Application No. 61/334,099, filed May 12, 2010, titled “DYNAMIC WEB SERVICES SYSTEM AND METHOD,” naming inventors Vishal Chalana, Amit Sharma, Piyush Nagar, Vishal Sharma, and Vikram Chalana, and having Attorney Docket No. WINS-2010016. The above-cited application is incorporated herein by reference in its entirety, for all purposes.
FIELDThe present invention relates to databases, and more particularly to methods of defining and providing dynamic web services for automating database transactions.
BACKGROUNDEnterprise resource planning (“ERP”) systems are designed to coordinate some or all of the resources, information, and activities needed to complete business processes. An ERP system may support business functions including some or all of manufacturing, supply chain management, financials, projects, human resources, customer relationship management, and the like.
Many ERP systems provide a native application programming interface (“API”) that developers may use to read, write, update, and/or remove data objects on the database level. Some ERP systems may also provide a native API that developers may use for observing, automating, and/or emulating user interactions with the ERP system, such as through a graphical user interface (“GUI”). For example, ERP Servers provided by SAP AG of Weinheim, Germany, typically expose a native API via remote function calls (“RFC”). An RFC is a procedure for data interchange (typically via a TCP/IP connection) between a client (typically an SAP client) and a server (typically an SAP server).
In addition, some ERP systems may expose some or all of a native API as a general-purpose, static “web service,” which can be accessed over a network, such as the Internet, and executed on a remote system hosting the requested services. When using such a web service, clients and servers commonly communicate over the Hypertext Transfer Protocol (“HTTP”) protocol.
There are several web service variants. In one variant, which has been popular with traditional enterprise, clients and servers communicate via Extensible Markup Language (“XML”) messages that follow the Simple Object Access Protocol (“SOAP”) standard. In such systems, there is often a machine-readable description of the operations offered by the service written in the Web Services Description Language (“WSDL”).
Another web service variant conforms to Representational State Transfer (“REST”) constraints and uses HTTP methods such as PUT, GET, DELETE, and POST instead of SOAP messages. RESTful web services may or may not use WSDL definitions and/or XML or JavaScript Object Notation (“JSON”) messages.
Using native APIs such as those described above, it is often possible for developers to create custom forms and/or program custom clients to enable users to perform specific transactions with the ERP system. However, it can be difficult and/or expensive to have developers implement custom interfaces for interacting with an ERP system via a native-API, even an API that is exposed via a web service. Consequently, many businesses must maintain an expensive information technology department and/or use expensive outside consultants to facilitate custom ERP interface development.
The detailed description that follows is represented largely in terms of processes and symbolic representations of operations by conventional computer components, including a processor, memory storage devices for the processor, connected display devices and input devices. Furthermore, these processes and operations may utilize conventional computer components in a heterogeneous distributed computing environment, including remote file Servers, computer Servers and memory storage devices. Each of these conventional distributed computing components is accessible by the processor via a communication network.
Reference is now made in detail to the description of the embodiments as illustrated in the drawings. While embodiments are described in connection with the drawings and related descriptions, there is no intent to limit the scope to the embodiments disclosed herein. On the contrary, the intent is to cover all alternatives, modifications and equivalents. In alternate embodiments, additional devices, or combinations of illustrated devices, may be added to, or combined, without limiting the scope to the embodiments disclosed herein.
According to various embodiments, as described below, a Dynamic Web Service (“DWS”) server may facilitate custom Enterprise interface development with little or no developer input by dynamically creating a web service for performing a particular transaction, according to a transaction map created by “recording” a transaction between an ERP client and an ERP server.
In various embodiments, network 150 may include the Internet, a local area network (“LAN”), a wide area network (“WAN”), and/or other data network. In other embodiments, DWS Server 200 and ERP Server 110 may communicate with one another via a channel other than network 150. For example, DWS Server 200 and ERP Server 110 may be connected via a SAN, a high speed serial bus, and/or via other suitable communication technology. In many embodiments, there may be multiple client devices 300. In some embodiments, DWS Server 200 and ERP Server 110 may communicate with one another via a private network, a secure network, and/or a secure portion of network 150.
The DWS Server 200 also includes a processing unit 210, a memory 250, and an optional display 240, all interconnected along with the network interface 230 via a bus 220. The memory 250 generally comprises a random access memory (“RAM”), a read only memory (“ROM”), and a permanent mass storage device, such as a disk drive. The memory 250 stores program code for dynamic web service publish routine 1200 and dynamic web service routine 1400. In addition, the memory 250 also stores an operating system 255. These software components may be loaded from a computer readable storage medium 295 into memory 250 of the DWS Server 200 using a drive mechanism (not shown) associated with a computer readable storage medium 295, such as a floppy disc, tape, DVD/CD-ROM drive, memory card, or the like. In some embodiments, software components may also be loaded via the network interface 230, rather than via a computer readable storage medium 295.
DWS Server 200 also communicates via bus 220 with DWS data store 105. In various embodiments, bus 220 may comprise a storage area network (“SAN”), a high speed serial bus, and/or via other suitable communication technology. In some embodiments, DWS Server 200 may communicate with DWS data store 105 via network interface 230.
Although an exemplary DWS Server 200 has been described that generally conforms to conventional general purpose computing devices, an DWS Server 200 may be any of a great number of devices capable of communicating with the network 150 and/or ERP Server 110, for example, a personal computer, a game console, a set-top box, a handheld computer, a cell phone, or any other device that is capable of providing web services and communicating via a native-API with ERP Server 110.
The Client Device 300 also includes a processing unit 310, a memory 350, and a display 340, all interconnected along with the network interface 330 via a bus 320. The memory 350 generally comprises a random access memory (“RAM”), a read only memory (“ROM”), and a permanent mass storage device, such as a disk drive. The memory 350 stores program code for record-map-publish routine 1100 and dynamic web service consumption routine 1300. In addition, the memory 350 also stores an operating system 355, as well as an ERP client 402, a DWS client 403, and a custom Transaction client 401 (see
Although an exemplary Client Device 300 has been described that generally conforms to conventional general purpose computing devices, an Client Device 300 may be any of a great number of devices capable of communicating with the network 150 and/or ERP Server 110, for example, a personal computer, a game console, a set-top box, a handheld computer, a cell phone, or any other device that is capable of accessing a accessing web services.
For example, as illustrated in
Referring again to
As the user defines 405 and performs 410 the transaction, DWS client 403 monitors the user's activities in ERP client 402 and/or monitors the ERP client's communications with ERP Server 110. Using data thereby collected, DWS client 403 records and maps 420 the transaction that was defined 405 and performed 410 in ERP client 402.
For example, as illustrated in
Referring again to
For example, as illustrated in
Referring again to
For example, as illustrated in
In other embodiments, other forms-authoring tools may be employed to at least partially automatically generate a form having fields linked to the appropriate inputs used by the dynamic web service. For example, in various embodiments, a form may be generated using a tool such as Microsoft InfoPath forms, provided by Microsoft Corporation of Redmond, Wash.; a Windows Forms application, such as Microsoft Visual Studio, also provided by Microsoft Corporation of Redmond, Wash.; a mobile forms builder, such as Canvas, provided by Canvas Solutions, Inc. of Herndon, Va.; and/or a web-form builder, such as Oracle Application Express (APEX), provided by Oracle Corporation of Redwood Shores, Calif.
Referring again to
For example, as illustrated in
Although the exemplary Transaction client 401 is illustrated as a Portable Document Format (“PDF”) form, in other embodiments, any client that supports web services can be used, including Microsoft InfoPath forms, provided by Microsoft Corporation of Redmond, Wash.; a Windows Forms application, such as Microsoft Visual Studio, also provided by Microsoft Corporation of Redmond, Wash.; and/or a HyperText Markup Language, Adobe Flash, or other web-based front-end that can be called from a web-enabled computer or mobile device. In some embodiments, a Transaction client 401 may be deployed on a mobile device, such as a mobile phone, PDA, tablet, game console, or the like, which may or may not be the same device on which the transaction was originally recorded.
In block 1110, routine 1100 maps data sources and/or data sinks (if any) involved in the recorded transaction. For example, in some embodiments, ERP Server 110 may return a list of fields involved in the transaction or other metadata about the transaction. In some embodiments, routine 1100 may observe the user interacting with particular fields in the ERP client process 402. In some embodiments, routine 1100 may solicit mapping information from a user, accepting user input to create mappings between particular input and/or output fields involved in the transaction and external data sources and/or data sinks (e.g., XML data, spreadsheet data, database data, and the like). In some embodiments, one or more of the fields involved in the transaction may not be mapped to an external source, but the data provided during the original transaction recording is treated as static data for that field.
In called-routine block 1200, routine 1100 calls a remote publish routine 1200 (see
In some embodiments, called-routine 1200 returns a dynamic service description and/or a dynamic service description identifier (e.g., a WSDL XML schema describing the dynamic web service and/or an URL for such a WSDL file), and in block 1115, routine 1100 stores (at least transiently) the dynamic service description and/or a dynamic service description identifier. Routine 1100 ends in block 1199.
Using the recorded transaction map, in block 1210, routine 1200 automatically generates a description framework for a new dynamic web service corresponding to the recorded transaction. For example, in one embodiment, routine 1200 generates a framework for a WSDL XML schema such as that partially illustrated in
In block 1220, routine 1200 identifies one or more input fields that have been mapped to one or more external data sources. Beginning in block 1225, routine 1200 processes each identified mapped input field. In block 1230, routine 1200 defines an input for the dynamic web service corresponding to the current mapped input field. In block 1235, routine 1200 stores the defined input in the service description framework. In block 1240, routine 1200 cycles back to block 1225 to process the next mapped input field (if any).
For example, for the exemplary transaction illustrated in
Having generated and stored an identifier and description for a new dynamic web service corresponding to a recorded transaction map, in block 1245, routine 1200 stores completed dynamic web service description, for example, in DWS data store 105. In some embodiments, routine 1200 may also obtain and store additional data and/or files, such as ERP authentication credentials (see, e.g.,
Routine 1200 ends in bock 1299, making available at least one of the identifier and the description, e.g., to the calling routine (which may be a remote process on a client device, e.g., Client 300). For example, in one embodiment, routine 1200 may return an URL containing the unique dynamic web service identifier. In one embodiment, this URL simply returns the dynamic web service description stored in block 1245 (e.g., a WSDL XML Schema) to a requestor. For example, if the unique dynamic web service identifier is “CreateMaterial,” then in one embodiment, the returned URL may take the following form: “http://abc.com/winshuttleserver/Service.svc/CreateMaterial?WSDL”. Since the dynamic web service identifier is unique, this URL is also unique and specific to the published service.
In block 1310, routine 1300 determines one or more service inputs mapped to one or more external data sources in the dynamic service description. Beginning in block 1315, routine 1300 processes each identified service input. In block 1320, routine 1300 obtains input data corresponding to the current service input. In block 1325, routine 1300 cycles back to block 1315 to process the next service input (if any).
For example, for the exemplary transaction illustrated in
In block 1330, routine 1300 packages the obtained input data according to the obtained dynamic service description. For example, in one embodiment, routine 1300 packages the input data into XML according to the WSDL service description. In some embodiments, routine 1300 packages the input data into an XML SOAP message according to the WSDL service description.
In called-routine block 1400 (see
In block 1335, routine 1300 receives output from the invoked dynamic web service (if any). For example, in some embodiments, the dynamic web service may return log information, and/or requested data structures. Routine 1300 ends in block 1399.
In block 1410, routine 1400 determines an identifier corresponding to the indicated dynamic web service. For example, in one embodiment, routine 1400 may determine a dynamic web service identifier passed in as a parameter to a static web service.
In block 1415, routine 1400 obtains metadata corresponding to the identified dynamic web service. For example, in one embodiment, routine 1400 obtains metadata from a metadata library in DWS data store 105. In some embodiments, the obtained metadata includes information from a recorded transaction map. In some embodiments, the obtained metadata may also include ERP authentication credentials.
In block 1420, routine 1400 obtains a package of input data in a first data format. For example, in one embodiment, routine 1400 obtains XML and/or SOAP data corresponding to one or more input fields.
In block 1425, routine 1400 parses the input data package according to the obtained dynamic web service metadata, and if necessary, in block 1430, routine 1400 repackages the input data into a second data format according to the dynamic web service metadata. For example, in one embodiment, routine 1400 repackages XML and/or SOAP data structures into one or more packages of data structured so as to comply with an RFC calling mechanism used to communicate via a native-API with ERP Server 110.
In block 1435, using the obtained dynamic web service metadata, routine 1400 determines one or more remote native-ERP-API calls corresponding to the invoked dynamic web service. For example, in one embodiment, routine 1400 may determine one or more RFC calls that were recorded between an ERP client 402 and ERP Server 110.
In block 1440, routine 1400 invokes the one or more remote native-ERP-API calls on ERP Server 110, using the repackaged input data in place of the input data originally provided in the recorded transaction. In some embodiments, routine 1400 may essentially “mimic” the behavior of the ERP client 402 from which the transaction was originally recorded, using RFC to invoke the ERP Server's native-ERP-API. In other embodiments, routine 1400 may use a native-ERP web service API to perform the recorded transaction with the newly provided input data.
In block 1445, routine 1400 receives output data from the remotely-invoked native-ERP-API calls (if any). In block 1450, routine 1400 packages the output data into one or more output structures (if any) identified in the dynamic web service metadata. In block 1499, routine 1400 ends, making available the packaged output structures (if any), e.g., to the calling remote process.
Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that a whole variety of alternate and/or equivalent implementations may be substituted for the specific embodiments shown and described without departing from the scope of the present invention. For example, although the description above refers to embodiments involving enterprise resource planning systems, other embodiments may be similarly used in other types of enterprise application systems in which a transaction between an enterprise client and an enterprise server may be recorded and mapped, as variously described above. For example, the systems and methods described herein may be used in connection with enterprise systems such as customer relationship management (“CRM”) systems, accounting systems, supply chain management systems, and the like. This application is intended to cover any adaptations or variations of the embodiments discussed herein.
Claims
1. A computer-implemented method for publishing a dynamic web service, the method comprising:
- receiving, by the computer from an Enterprise Application client, a recorded transaction map describing a recorded transaction between said Enterprise Application client and an Enterprise Application server, said recorded transaction map including metadata corresponding to a plurality of transaction fields;
- automatically generating, by the computer, a service description framework for a new dynamic web service corresponding to said recorded transaction;
- determining, by the computer, a unique service identifier for invoking said new dynamic web service;
- persisting said unique service identifier, said service description framework, and said recorded transaction map in a data store; and
- providing said unique service identifier from the computer to said Enterprise Application client.
2. The method of claim 1, further comprising:
- receiving a request from said Enterprise Application client for said service description framework, said request indicating said unique service identifier;
- retrieving said service description framework from said data store according to said unique service identifier; and
- sending said service description framework to said Enterprise Application client.
3. The method of claim 1, further comprising:
- receiving a request from said Enterprise Application client to invoke said new dynamic web service according to a package of input data, said request indicating said unique service identifier;
- retrieving said recorded transaction map from said data store according to said unique service identifier;
- according to recorded transaction map, determining at least one Enterprise Application API call for performing said recorded transaction;
- using said at least one Enterprise Application API call, invoking a remote Enterprise Application server to perform said recorded transaction according to said package of input data.
4. The method of claim 3, further comprising:
- receiving said package of input data according to a first calling mechanism; and
- repackaging said package of input data to comply with a second calling mechanism.
5. The method of claim 4, wherein invoking a remote Enterprise Application server to perform said recorded transaction according to said package of input data comprises calling said remote Enterprise Application server according to said second calling mechanism, said at least one Enterprise Application API call, and said repackaged input data.
6. The method of claim 4, wherein performing said recorded transaction according to said package of input data comprises invoking said at least one Enterprise Application API call according to said second calling mechanism and said repackaged input data.
7. The method of claim 4, further comprising:
- receiving from said Enterprise Application server process output data corresponding to said invocation of said remote Enterprise Application server;
- packaging said process output data according to said first calling mechanism; and
- providing said packaged process output data to said Enterprise Application client.
8. The method of claim 1, wherein automatically generating said service description framework comprises, for each of said plurality of transaction fields:
- defining an input corresponding to the current transaction field; and
- storing the defined input in said service description framework.
9. The method of claim 1, wherein said Enterprise Application client comprises an Enterprise resource planning (“ERP”) client, and wherein said Enterprise Application server comprises an ERP server.
10. A non-transient computer-readable storage medium having stored thereon instructions that, when executed by a processor, perform the method of claim 1.
11. A computing apparatus comprising a processor and a memory having stored thereon instructions that, when executed by the processor, perform the method of claim 1.
12. A computer-implemented method for generating a custom interface for performing a recorded transaction, the method comprising:
- defining a transaction between an Enterprise Application client device and an Enterprise Application server, said transaction including at least one Enterprise Application API call to said Enterprise Application server with input data from a plurality of transaction fields;
- recording, by said Enterprise Application client device, a performance of said transaction to a recorded transaction, including recording said at least one Enterprise Application API call and said plurality of transaction fields;
- defining, by said Enterprise Application client device, a transaction map mapping at least one of said plurality of transaction fields to an external data source;
- sending a request by said Enterprise Application client device to a remote dynamic web services (“DWS”) server to publish said recorded transaction as a new dynamic web service according to said transaction map;
- receiving, by said Enterprise Application client device from said DWS server, a unique service identifier and a service description framework corresponding to said new dynamic web service;
- generating, by said Enterprise Application client, a custom interface to act as said external data source for collecting input for said mapped at least one of said plurality of transaction fields and for performing said recorded transaction via said new dynamic web service according to collected input; and
- storing, by said Enterprise Application client, said generated custom interface.
13. The method of claim 12, further comprising:
- collecting input data corresponding to said at least one of said plurality of transaction fields via said generated custom interface;
- packaging said collected input data according to said service description framework; and
- invoking said new dynamic web service to perform said recorded transaction according to said unique service identifier and said packaged collected input data.
14. The method of claim 12, wherein recording said performance of said transaction comprises monitoring a user's activities in an Enterprise Application client application.
15. The method of claim 12, wherein recording said performance of said transaction comprises monitoring an Enterprise Application client application's communications with said Enterprise Application server.
16. The method of claim 12, wherein generating said custom interface comprises automatically generating a form having at least one input field automatically mapped to said at least one of said plurality of transaction fields according to said service description framework.
17. The method of claim 12, wherein generating said custom interface comprises automatically generating a form having at least one output field automatically mapped to said at least one of said plurality of transaction fields according to said service description framework.
18. The method of claim 12, wherein said Enterprise Application client comprises an Enterprise resource planning (“ERP”) client, and wherein said Enterprise Application server comprises an ERP server.
19. A non-transient computer-readable storage medium having stored thereon instructions that, when executed by a processor, perform the method of claim 12.
20. A computing apparatus comprising a processor and a memory having stored thereon instructions that, when executed by the processor, perform the method of claim 12.
Type: Application
Filed: Jan 28, 2011
Publication Date: Nov 17, 2011
Patent Grant number: 8701159
Applicant: WINSHUTTLE, LLC (Bothell, WA)
Inventors: Vishal Chalana (Panchkula), Amit Sharma (Chandigarh), Piyush Nagar (Chandigarh), Vishal Sharma (Meerut), Vikram Chalana (Bothell, WA)
Application Number: 13/016,704