|Publication number||US7844639 B2|
|Application number||US 11/074,541|
|Publication date||Nov 30, 2010|
|Filing date||Mar 8, 2005|
|Priority date||Nov 24, 2003|
|Also published as||US8606824, US9058343, US20050149543, US20110035417, US20140040321, US20150278257|
|Publication number||074541, 11074541, US 7844639 B2, US 7844639B2, US-B2-7844639, US7844639 B2, US7844639B2|
|Inventors||Alon Cohen, Bhaven Avalani, Zahid Ahmed|
|Original Assignee||Ebay Inc.|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (16), Non-Patent Citations (9), Referenced by (18), Classifications (9), Legal Events (4)|
|External Links: USPTO, USPTO Assignment, Espacenet|
The present application is a continuation-in-part of U.S. patent application Ser. No. 10/997,767, filed Nov. 24, 2004, now published as US-2005-0138648-A1, which claims the priority benefit of U.S. Provisional Patent Application No. 60/524,782, filed Nov. 24, 2003. The present application also claims the priority benefit of the filing date of U.S. Provisional Patent Application No. 60/559,204, filed Apr. 1, 2004. The content of the aforementioned applications is incorporated herein, in its entirety, by reference.
The present application relates generally to the technical field of database schemas and application program interfaces using such schemas.
Buyers, sellers, and other business partners, are increasingly utilizing electronic trading systems (e.g., electronic marketplaces) to collaborate and to do business with each other. Part of this collaboration may involve, for example, linking operational business processes. Business processes may be linked by the exchange of information, in agreed sequences and within agreed timeframes, between buyer and seller applications, and affiliated third-party business service providers.
To facilitate the above-mentioned exchange of business information, buyer and seller applications, as well as applications of third-party business service providers, may expose Application Program Interfaces (APIs) which allow applications to make calls (e.g., function calls) to other applications to either request or send information. However, as the number of buyers, sellers, and third-party applications participating in the exchange of business information increases, the technical challenge of enabling this multitude of applications to exchange information increases. For example, the development of applications that are able to access APIs of a large number of other applications becomes increasingly burdensome and technically challenging. Further, data schemas or definitions provided by a network-based commerce facility to a third-party may however become outdated when changes occur with a master data schema at a network-based commerce facility. When changes occur with the master data schema, functional problems may arise at the third-party application.
According one aspect of the present invention, there is provided a server system to facilitate an exchange of data with a remote client application.
A system and method of accommodating at least one difference between a first database schema and a second database schema is provided. The method may include receiving a request from a first application program that is operationally dependent upon the first database schema, the request being received at a second application program that is operationally dependent upon the second database schema. The method includes identifying if there is a difference between the first database schema and the second database schema. When there is a difference, the method includes identifying the difference between the first database schema and the second database schema to identify at least one different schema definition element; associating the different schema definition element with a reserved element, the reserved element having a corresponding reserved element provided in the first database schema; and communicating a response to the first application program including the reserved element.
In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be evident, however, to one skilled in the art that the present invention may be practiced without these specific details.
An example embodiment of the present invention is discussed below within the context of a network-based commerce system that supports a network-based, electronic marketplace. Buyers and sellers, utilizing buyer and seller applications, as well as third-party business service providers, interact utilizing the electronic marketplace as a forum. Business processes may be driven by a wider range of electronic marketplace operational considerations, so as to enable buyers and sellers to conduct transactions utilizing the electronic marketplace. In one embodiment of the present invention, a server at the network-based commerce system transforms data into a modified format prior to communicating a response to a third-party system when the third-party system has an outdated version of the schema definitions. Accordingly, the network-based commerce system can still support third-party applications even though the schema definitions at the network-based commerce facility have changed.
In one example embodiment, message exchanges comply with a business language schema component model. The business language schema design framework allows an electronic marketplace server system (e.g., the commerce system) to support a wide range of commerce transactions, including auction, fixed price buying and selling, product catalogs searches and payments. These transactions provide examples of communications between buying and selling applications via the electronic marketplace, as well as communications with other third-party business service providers.
In an example embodiment, there is provided a schema component model that provides an abstract definition of the business message payloads. Payloads may be defined in a way to support extensibility which enables other types of commerce transactions models to be made available via the marketplace (e.g., for electronic procurement, reverse auctioning, credit check, and shipment/logistic activities).
The business language schema may catalog common business message components that may be utilized for any number of business communications facilitated by an electronic marketplace (e.g., auction, fixed price buying and selling, product catalog search, catalog-based listings, and electronic payment in support of item purchases). The business language schema, in one embodiment, enables a wide range of business applications to interoperate with XML web services APIs, and externally located and internally hosted clients.
Request/response message payload components may be defined by the business language schema which can be utilized to enable the building of a range of messages that may flow back and forth from buyers, sellers and third-party business service providers to marketplace XML web services, these web services enabling trading parties to list, find, and sell items and services.
In various example embodiments, message exchanges may be made, utilizing the business-language based message exchange model of an example embodiment of the present invention, with both external and internal business applications over synchronous communication and asynchronous communication links. Further, document-oriented synchronous messaging, as well as document-oriented asynchronous messaging, may be supported. As will be described in further detail below, a message packaging format may be a flavor of the XML messaging format (e.g., SOAP 1.1, SOAP 1.2, ebXML, or an e-mail format such as MIME or any other arbitrary message packaging format). Further, transport protocols used may include HTTP, HTTPS, SMTP, or some other arbitrary transport protocol needed for particular business applications hosted remotely at a trading entity that requires moving data.
A schema design framework for a host language in the example form of a business language is provided to support message payload definitions for a multitude of use cases and for use with a multitude of APIs. This may be accomplished via an extensibility model that includes base components, and business message components that support new transaction models and messaging components. Specifically, the base components may provide a definition of basic core component types, basic components and aggregate components, including an abstract messaging framework. The business message components are based on the business information requirements for a particular use case.
Regarding the business messaging components, based on the business information requirements of a particular use case, the definitions of the basic set of messaging components are needed for a legacy transaction model can be supported utilizing the above mentioned base components in support of business message components. In one example embodiment, the business language components for use in an electronic trading environment, such as that described below with respect to
It will be appreciated that, over the course of time, many new types of business processes may be employed by a trading community (e.g., buyers, sellers and third-party service providers) that utilize an electronic marketplace and accordingly that interface with services exposed by the electronic marketplace. Such new types of applications may exploit different types of transaction interfaces (e.g., APIs) exposed by an electronic marketplace. In one example embodiment, an abstract message payload framework is provided that can be extended for many different types of messages and over different protocols, as may be required. However, it should be appreciated that the present invention is not limited to this framework and may use any other host language.
In an example embodiment, when a commerce system receives a request from a third-party system, a response message is sent to the third-party system including instances of specific enumerated code types or placeholders (custom slots) for an element that has been added in an updated schema definition but which are not present in an outdated schema definition on the third-party system. This indicates that the API has defined new, additional enumerated codes that may not be understood and correctly processed by a client application on the third-party system. An update to the schema definition(s) may, for example, be an updated XML schema definition for the targeted API. The specific enumerated code type or “CustomCode” element (also referred to herein as a reserved element or default element) being returned in such scenarios may prevent the client application from experiencing a communication breakdown with the API, due to incremental schema changes and evolutions that may occur as part of the commerce system. It will be appreciated that the example CustomCode could be used with any host language. However, by way of example, the CustomCode is described with reference to the example business language described below. In this example, embodiment, the CustomCode is included within a payload but, in other embodiments, the CustomCode may be included in any manner within a response sent from a server system to a client system e.g., a response based on Web Services Description Language (WSDL).
Example Business Language Schema Component Concepts
Core Component Type (CCT): a core component type is, in one embodiment, a low level construct that may have no meaning on its own. A core component type has a content component and additional components (e.g., mandatory or optional) which give it a specific meaning. An example of a core component type is an “amount”, where the content part is a number (e.g., 87) and another required part is a unit (e.g., a Euro).
Basic core components: a basic core component represents, in the example embodiment, a core business concept (e.g., a unique business semantic definition). This may be accomplished by employing a core component type (CCT) or a primitive data type (e.g., XSD data types) to which some other semantically unique object (e.g., a “weight” element is an instance of the core component type CCT Measure Type).
Aggregate core components: aggregate core components, in one example embodiment, encapsulate two or more basic core components which represent higher-level business concepts (e.g., “shipping address” is an instance of Address Type). Each aggregate core component may have its own business semantic definition.
Having above provided a high level introduction, a more detailed description of an example trading system, centered around a network-based commerce system, will now be described with reference to
Example Platform Architecture
Turning specifically to the network-based commerce system 12, an Application Program Interface (API) server 24 and a web server 26 are coupled to, and provide programmatic and web interfaces respectively to, one or more application servers 28. Specifically, the API server 24 exposes multiple APIs to users of the commerce system 12. Each of these APIs supports one or more function calls to applications of the system 12. Each of these APIs may have a associated API schema definitions.
The application servers 28 host one or more marketplace applications 30 and payment applications 32. The application servers 28 are, in turn, shown to be coupled to one or more databases servers 34 that facilitate access to one or more databases 36.
The marketplace applications 30 provide a number of marketplace functions and services to users that access the commerce system 12. The payment applications 32 likewise provide a number of payment services and functions to users. The payment applications 30 may allow users to quantify for, and accumulate, value (e.g., in a commercial currency, such as the U.S. dollar, or a proprietary currency, such as “points”) in accounts, and then later to redeem the accumulated value for products (e.g., goods or services) that are made available via the marketplace applications 30. While the marketplace and payment applications 30 and 32 are shown in
Further, while the trading environment 10 shown in
The web client 16, it will be appreciated, accesses the various marketplace and payment applications 30 and 32 via the web interface supported by the web server 26. Similarly, the programmatic client 18 accesses the various services and functions provided by the marketplace and payment applications 30 and 32 via the programmatic interface provided by the API server 24. The programmatic client 18 may, for example, be a seller application (e.g., the TurboLister application developed by network-based commerce system 12 Inc., of San Jose, Calif.) to enable sellers to author and manage listings on the commerce system 12 in an off-line manner, and to perform batch-mode communications between the programmatic client 18 and the network-based commerce system 12. As described in more detail below, such a programmatic client may operate in conjunction with locally stored schema definitions that the programmatic client 18 has previously received from the network-based commerce system 12. In one embodiment, out of date schema definitions on the programmatic client may be accommodated by the network-based commerce system 12 without affecting the operability of the programmatic client 18.
Example Marketplace Applications
A number of fixed-price applications 46 support fixed-price listing formats (e.g., the traditional classified advertisement-type listing or a catalogue listing) and buyout-type listings. Specifically, buyout-type listings (e.g., including the Buy-It-Now (BIN) technology developed by network-based commerce system 12 Inc., of San Jose, Calif.) may be offered in conjunction with an auction-format listing, and allow a buyer to purchase goods or services, which are also being offered for sale via an auction, for a fixed-price that is typically higher than the starting price of the auction.
Store applications 48 allow sellers to group their listings within a “virtual” store, which may be branded and otherwise personalized by and for the sellers. Such a virtual store may also offer promotions, incentives and features that are specific and personalized to a relevant seller.
Reputation applications 50 allow parties that transact utilizing the network-based commerce system 12 to establish, build and maintain reputations, which may be made available and published to potential trading partners. Consider that where, for example, the network-based commerce system 12 supports person-to-person trading, users may have no history or other reference information whereby the trustworthiness and credibility of potential trading partners may be assessed. The reputation applications 50 allow a user, for example through feedback provided by other transaction partners, to establish a reputation within the network-based commerce system 12 over time. Other potential trading partners may then reference such a reputation for the purposes of assessing credibility and trustworthiness.
Personalization applications 52 allow users of the commerce system 12 to personalize various aspects of their interactions with the commerce system 12. For example a user may, utilizing an appropriate personalization application 52, create a personalized reference page at which information regarding transactions to which the user is (or has been) a party may be viewed. Further, a personalization application 52 may enable a user to personalize listings and other aspects of their interactions with the commerce system 12 and other parties.
In one embodiment, the network-based commerce system 12 may support a number of marketplaces that are customized, for example, for specific geographic regions. A version of the commerce system 12 may be customized for the United Kingdom, whereas another version of the commerce system 12 may be customized for the United States. Each of these versions may operate as an independent marketplace, or may be customized (or internationalized) presentations of a common underlying marketplace.
Navigation of the network based-commerce system 12 may be facilitated by one or more navigation applications 56. For example, a search application enables key word searches of listings published via the commerce system 12. A browse application allows users to browse various category, catalogue, or inventory data structures according to which listings may be classified within the commerce system 12. Various other navigation applications may be provided to supplement the search and browsing applications.
In order to make listings, available via the network-based commerce system 12, as visually informing and attractive as possible, the marketplace applications 30 may include one or more imaging applications 58 utilizing which users may upload images for inclusion within listings. An imaging application 58 also operates to incorporate images within viewed listings. The imaging applications 58 may also support one or more promotional features, such as image galleries that are presented to potential buyers. For example, sellers may pay an additional fee to have an image included within a gallery of images for promoted items.
Listing creation applications 60 allow sellers conveniently to author listings pertaining to goods or services that they wish to transact via the commerce system 12, and listing management applications 62 allow sellers to manage such listings. Specifically, where a particular seller has authored and/or published a large number of listings, the management of such listings may present a challenge. The listing management applications 62 provide a number of features (e.g., auto-relisting inventory level monitors, etc.) to assist the seller in managing such listings. One or more post-listing management applications 64 also assist sellers with a number of activities that typically occur post-listing. For example, upon completion of an auction facilitated by one or more auction applications 44, a seller may wish to leave feedback regarding a particular buyer. To this end, a post-listing management application 64 may provide an interface to one or more reputation applications 50, so as to allow the seller conveniently to provide feedback regarding multiple buyers to the reputation applications 50.
Dispute resolution applications 66 provide mechanisms whereby disputes arising between transacting parties may be resolved. For example, the dispute resolution applications 66 may provide guided procedures whereby the parties are guided through a number of steps in an attempt to settle a dispute. In the event that the dispute cannot be settled via the guided procedures, the dispute may be escalated to a third-party mediator or arbitrator.
A number of fraud prevention applications 68 implement various fraud detection and prevention mechanisms to reduce the occurrence of fraud within the commerce system 12.
Messaging applications 70 are responsible for the generation and delivery of messages to users of the network-based commerce system 12, such messages for example advising users regarding the status of listings at the commerce system 12 (e.g., providing “outbid” notices to bidders during an auction process or to provide promotional and merchandising information to users).
Merchandising applications 72 support various merchandising functions that are made available to sellers to enable sellers to increase sales via the commerce system 12. The merchandising applications 80 also operate the various merchandising features that may be invoked by sellers, and may monitor and track the success of merchandising strategies employed by sellers.
The network-based commerce system 12 itself, or one or more parties that transact via the commerce system 12, may operate loyalty programs that are supported by one or more loyalty/promotions applications 74. For example, a buyer may earn loyalty or promotions points for each transaction established and/or concluded with a particular seller, and be offered a reward for which accumulated loyalty points can be redeemed.
The tables 90 also include an items table 94 in which are maintained item records for goods and services that are available to be, or have been, transacted via the commerce system 12. Each item record within the items table 94 may furthermore be linked to one or more user records within the user table 92, so as to associate a seller and one or more actual or potential buyers with each item record.
A transaction table 96 contains a record for each transaction (e.g., a purchase transaction) pertaining to items for which records exist within the items table 94.
An order table 98 is populated with order records, each order record being associated with an order. Each order, in turn, may be with respect to one or more transactions for which records exist within the transactions table 96.
Bid records within a bids table 100 each relate to a bid received at the network-based commerce system 12 in connection with an auction-format listing supported by an auction application 44. A feedback table 102 is utilized by one or more reputation applications 50, in one example embodiment, to construct and maintain reputation information concerning users. A history table 104 maintains a history of transactions to which a user has been a party. One or more attributes tables 106 record attribute information pertaining to items for which records exist within the items table 94. Considering only a single example of such an attribute, the currency table 108 may indicate a currency attribute associated with a particular item, the currency attribute identifying the currency of a price for the relevant item as specified in by a seller.
Having above described an example trading environment 10, within which an example embodiment of the present invention maybe deployed, further details regarding a method and system to accommodate different or outdated schema definitions, according to an example embodiment of the present invention, (e.g., for message exchanges within the trading environment 10) are now described.
Thus, in broad terms, the third-party system 122, using the client application 124, compiles a request message, which is directed to an API 126 (e.g., AddItem, GetltemTransaction, etc.) of the server system 125. Each API 126 in turn provides access through supported function calls to one of a plurality of applications, indicated generally by arrow 128, that have access to a database 130.
Turning now to
The client application 124 is also shown by way of example to include a message handler 145, and a serialization/deserialization handler 147, in addition to the API specific component 142. Specifically, each third-party system 122 may host a client application 124, which can exploit the abstract request/response message via any one of the following processing components:
The transport handler 143 and the message handler can be formed from any standard, commercially available Software Development Kit (SDK) to which a third-party has access in its development and runtime deployment environments.
The abstract request serialization and response deserialization handler 137 can be developed for client applications 124 once, and reused multiple times, thus reducing the cost of interfacing and also providing consistent interfacing with API-based application services exposed by the commerce system 12 over a wide range of transport and messaging particles. Such a “write once and, use multiple times” deployment is useful for trading communities, regardless of use case and other infrastructure components in support of transport, security and messaging protocols.
Turning now to
The structure of example abstract request and response messages 158, 176 will now be described in detail with reference to
An example abstract response message 176 includes a Time Stamp component 178 and an associated DateTime 180, and an Acknowledgement component 182 and an associated AckCodeType 184. These components are used to acknowledge receipt of a request message of the received from a client application 124.
The abstract response message 176 further includes a Correlation_ID component 186 and associated String Identifier 188, an Error(s) Data component 190 and associated data 192, a Version_ID 193, a Build component 194 and a Response Payload component 196 for receiving any type of XML data 198.
The Correlation_ID component 186 and associated String Identifier 188 allow the abstract response message 176 to be correlated with a particular incoming request message 158, and to indicate this correlation to the requesting client application 124.
Thus, in one example embodiment, there is some commonality in the abstract request and abstract response messages 158 and 176, namely they both can carry any type of data, and both include version information.
The Error Language component 164 and the Error Data(s) component 190 ensure that the API request/response messages consistently use, manage and communicate error components. Part of this is the ability to communicate versioning information identifying what version of an API a particular API server 24 is using to communicate with a client application 124 of a third-party system 122 (e.g., a client 20 and 22). Thus, for example, if a third-party system 122 sends a request message that includes incorrect data or that does not comply with the published requirements of a target API, the Error(s) Data component 190 may be used by the target API to communicate information regarding the error back to the client application 124. Thus, in an example embodiment, when an error is detected, a response message may be generated by the relevant API, this response message being either a long message or a short message, and including an error code and associated severity code. This response message is sent to the relevant client application 124, thereby informing the client application 124 as to the nature of the error.
Regarding the version of the API that the API server 24 is using, versioning information may be included in both a request message from a client application 124 to the API server 24, as well as a response message from the API server 24 back to the client application 124. This is indicated schematically by blocks 168 and 193 in
In one embodiment, the host language includes the example request and response message structures. The abstract request and response models can be extended to enable API requests and responses between a third-party system 122 and any number of APIs provided by one or more API servers 24. For example, a particular server system may expose a number of APIs, each conforming to the basic request/response messages described above. Thus, for example, the basic request/response messages can be extended to enable an AddItem API, or a GetItem API, or a GetAccount API. Thus, for example, for a third-party system wishing to exchange item information with the commerce system 12, the basic abstract request message may be extended with the addition of information conforming to a schema understood by a GetItem API. It will however be appreciated that the present invention is not limited to this message structure. In other words, this example arrangement allows a third-party system 122, hosting an appropriately configured client application 124, to communicate with multiple APIs with a degree of uniformity and predictability. In one embodiment, a uniform data processing model is utilized and supported by a number of APIs, thereby allowing developers of client applications to reuse parts of their code.
Dealing more specifically with the re-usability of the business language schema data components, in a specific example deployment environment of a trading environment 10 such as that illustrated in
In all of the above use cases, the client application 124 is required to send information back to a network-based commerce system 112 regarding items listed for sale via the commerce system 12. This may require description of an <item>structure in a consistent manner such that the client applications 122 from which the API calls originate understand the semantics of an item listed by a seller on the e-commerce system 12. However, since the context of each call from a client application 124 is different in each use case scenario, a different degree of information needs to be provided such that some data components are included or excluded. Further, such functionality may be dependent upon the XML-schema definitions 144 and 146 which, as mentioned above, may change or be updated at the server system 125.
Utilizing the item listing use case scenario described above, the issues described above can be addressed utilizing (1) an <item> data component model, and (2) multiple data validation levels.
Turning first to the <item> data component model, in terms of this model an “item” has required and optional data components. These components internally also have child components that are required and optional components.
Accordingly, a single item component definition may be used for multiple API use cases, with the developers and designers of the APIs being able to select which elements of the item component must be present and which elements of an item component do not need to be present.
Turning now to the multiple data validation levels, when a client application 124 sends an API request message payload 172, an API processing payload may, in one embodiment, include the following sequence of validations:
The above sequence of validations, it will be noted, utilizes a single definition of key business data components such that data variability in request/response messages can be supported in a controlled manner using the required validation logic for the business use case. For example, for the following three example APIs (GetItem, GetItem Transaction and SellerList), the same definition of an <item> business definition component can be used on the client side—yet the APIs will return response messages with varying API data structures. This enables uniformity in a semantic definition, yet allows the return of different views of the <item> business component according to use case.
Accordingly, a server system (e.g., a network-based commerce system 12) that exposes multiple business application services can utilize these multiple exposed business applications in communicating with multiple client applications 122 in a way that the client applications 122 can understand and communicate. For example, information about an item with varying syntactic characteristics that correspond to an item is communicated (e.g., information about an item with varying syntactic characteristics that correspond to a data item component with a common semantic definition). The above contributes to the reusability of data components within, for example, a trading community with multiple use cases.
To develop a client application 124 that communicates with multiple APIs, or to modify an existing client application 124 to talk to multiple APIs, a developer downloads or imports XML schema definitions for each of the multiple APIs. For example, for an example GetTransactionDetail API, the developer will need to import or download the corresponding schema for this API, and in particular the GetTransactionDetail request message as well as the GetTransactionDetail response message. Thereafter, the client application 124 will need to integrate these schema processing components with their own (e.g., as part of the API specific component 142). However, as described in more detail below, the downloaded or imported schema definitions include CustomCode or reserved elements in the schema definition to accommodate changes in the schema definitions at the server system 135.
According to an example embodiment of the present invention, and as described in more detail below, when a data schema is generated for communication to the third-party system 122, a forced or reserved element (CustomCode) is included in the schema definition. When the schema definition(s) at the server system 125 subsequently change and the schema definition(s) at the server system 125 and the third-party system are no longer identical, the forced element or CustomCode is used to replace additional elements that may have been included in the modified schema definition at the server system 125. Thus, the server system 125 uses the forced or reserved element when encountering a value that would violate the XML schema definition at the third-party system 122. Specifically in a response to a request from the third-party system 122, a default value or reserved element is provided as the enumerated code type in the response when the enumerated code type at the server system 125 will not be understood by the client application 124 using an outdated or different schema definition.
For example, after a schema definition has been communicated or published to one or more third-party systems 122, any improvements, changes, modifications (including additions and/or deletions) or the like may take place at the server system 125 resulting in one or more new schema definition elements. For example, in one month, an original XML schema definition may define 7, 10, 14 and 21 day duration values, but the next month, the updated up XML schema definition may be updated to remove the duration value of 21 days, or add a duration value of 28 days. When a further element is added to the schema definitions at the server system 125 (e.g., the addition of the 28 day value), if the API 126 at the server system 125, utilizing the current XML schema including updates, attempted to provide the 28 day duration value to the third-party system 122, the client application 124 may see this as a violation as the value is not provided in any of the schema definitions originally provided at the third-party system 122. Likewise, when the example duration value of 21 days is removed, if the client application 124, utilizing the original XML provided to the third-party system 122, attempts to provide the 21 day duration value against an updated API at the server system 125, this may be registered as a violation. To address this change, a forced element or reserved element, which can carry any value, may be inserted into the request and/or response (e.g., into payload 196 of a response message 176 in one example embodiment).
In an example embodiment, an indication of a change in a schema definition element (or any other difference/change in the database schema) against the updated API of the commerce system 12 will be accepted, but the updated API may issue a warning to the relevant client application 124 that it needs to upgrade the relevant XML schema. When, the server system 125 identifies that a version of the schema definition(s) on the third-party system 122 is outdated, it may use a forced element or CustomCode to allow backwards compatibility of the outdated schema definition(s). Thus, in an example embodiment, the default value or CustomCode is only inserted by the API server into the response message when the server detects that the client is using an outdated version of the schema definition.
The method 250 commences at block 252, with the client application 124 including its version identifier (e.g., Version_ID), identifying the version of an XML-schema definition stored by the client application 124, within a request message 158 addressed to a particular target API 126. An example of the version identifier 170 is provided below:
≦Version xmlns=“URN: marketplace: APIs: BLBase Components”>383</Version>).
In the above example version identifier “383” may represent a particular third-party in the form of a “site code” that identifies (optionally uniquely identifies) the version of a schema definition(s) at the site. The site code may also relate to a particular international site. The version information may, however, be a date that identifies when the version was released to the third-party application 122, when the version was created at the server system 125, or any other version identification detail.
At block 254, an API 126 of the server system 125 receives a message request (e.g., the request message 158) from the client application 124, and determines from the version identifier if the client application 124 is utilizing a different and older version of an API schema or schema definitions supported by the relevant target API 126.
At block 256, the targeted API may compose a response message 176 (e.g., including a response payload 196) and include within the response message 176 instances of specific enumerated code types for an element (e.g., <Site> CustomCode </Site>) provided in an updated schema definition at the server system 125 but not at the third-party system 122. This indicates that the API has defined new, additional enumerated codes that may not be understood and correctly processed by the client application 124, in view of its updated XML schema definition for the targeted API. The “CustomCode” or forced element being returned in such scenarios will prevent the client application 124 from experiencing a communication breakdown with the API, due to incremental schema changes and evolutions that may occur as part of the commerce system 12, for example, revising API-based application service offerings.
An enumerate code type examples follow hereunder:
GetUser with version 383 returns SiteCode of China
API client has up-to-date version of API schema to communicate with XML Web Service APIs, e.g., GetUser API. Hence, the server system XML Web Service API returns the up-to-date enumeration code value (“China”) for the <Site>enumerated code element.
<?xml version=“1.0” encoding=“utf-16”?>
<?xml version=“1.0” encoding=“utf-16”?>
API client does not have up-to-date version of an API schema (as specified in <Version>sub-element in GetUserRequest message below) to communicate with XML Web Service APIs: GetUser API. Hence, XML Web Service API returns in response message:
<ShortMessage>Warning. Client schema out of date. <ShortMessage>
<LongMessage>Warning. Client schema out of date. Client Schema
Latest Schema Version: 347. LongMessage>
GetUser using 361 Version
<?xml version=“1.0” encoding=“utf-16”?>
<?xml version=“1.0” encoding=“utf-16”?>
<ns4:ShortMessage>Warning. Client schema out of date.
<ns4:LongMessage>Warning. Client schema out of date. Client Schema
Version: 361. marketplace Latest Schema Version: 347. </ns4:LongMessage>
In the example provided above the response indicates to the client application 124 that the version at the third-party 122 is out of date. However, it is to be appreciated that in an embodiment, the server system 125 may merely include the CustomCode to accommodate one or more differences between the schema definitions at the third-party system 122 and the server system 125.
In an example embodiment of the system in
In order to illustrate functionality in an exemplary embodiment assume that the network-based commerce system 12 at the time of generating the API-specific components 142 supported two payment methods shown by way of example to be Visa 289 and Mastercard 290. The definitions 286 (or dictionary generated from the definitions) that are provided at this point in time would then have definitions for these two payment methods. At this point in time, the schema definition 129 at the server system 125 would correspond with the schema definitions 144 and 146 provided at the third-party system 122. Any client application 124 operably dependent upon the schema definitions 144 and 146 would have no operability problems with responses received from the server system 125 as the schema definitions correspond. In these circumstances, enumerated values or input values which are allowed in a system would be unchanged.
However, assume that the network-based commerce system 12 adds a further payment method such as American Express or Amex 292 and, as a result thereof, a new or updated schema definition 270 is generated. The third-party system 124 may however still have the previous (old) version of the schema definition. As the server version of the schema definition 129 (see
As shown at block 302, one of the APIs 126 of the server system 125. receives a request from the client application 124 which identifies what version of a particular XML schema definition associated with the API 126 is resident on the third-party system 122. Thereafter, as shown at block 304 various business processing tasks may be performed. For example, checks may be performed to determine if the request came from a valid user; whether the request is appropriately formatted and other data checking procedures may be performed. If the request is not a valid request (see decision block 306), an error message may be returned to the third-party system 122 as shown at block 308.
Returning to decision block 306, if the request is a valid request, the request is then processed to determine if data requested and retrieved from a database (e.g., the database 130) needs to be transformed or changed as a result of differences between the API-specific components 142 (e.g., the schema definitions 144 and 146) and the schema definition 129. In an embodiment, the relevant application 128 performs the necessary database calls required to process the request (see block 309). Thereafter, the client version of the schema definitions 144 and 146 (which ever is appropriate for the selected API) is compared to the current version of the schema definitions resident at the server system 125 as shown at block 310. Definitions or a dictionary corresponding to those present at the client application 124 may be retrieved at block 312. Accordingly, differences between the current schema definition at the server system 125 and the schema definition at the third-party system 122 may be identified or determined. Thereafter, as shown at block 314, the schema definition in the current schema definition 129 is transformed to a schema definition corresponding to that at the third-party system 122. Data returned from the various database calls is transformed (see block 316) into a format corresponding to the schema definitions 144 and 146 at the third-party application to provide client usable data. In one example embodiment, this involves using a CustomCode or reserved code (recognizable by the client application 122) instead of the updated definition element from the updated schema definitions 144 and 166. Finally, the transformed data is sent to the third-party application (see block 318).
As shown by way of example in
The dictionary module table 326 is shown by way of example to include a word column/attribute 328, a database value column/attribute 330, and a version column/attribute 332. The dictionary module table 326 may track software changes at the network-based commerce system 12. Accordingly, using the dictionary module table 326 differences between a version of a schema definition resident on a third-party system 122 and on a network-based commerce system 12 may be determined or identified. In one embodiment, any additional language terms, definitions or the like are communicated as CustomCode or a reserved element.
It will be appreciated that further definition elements may be added to the schema definition 270 at the server system 125. For example, a further payment type “Discover” may be added (not shown) to the definitions 286. Thus, in the given example, the definitions would comprise Visa 289, Mastercard 290, Amex 292 and Discover (not shown). Assuming that both Amex 292 and were added to the schema definition 270, the version number of the schema definition 280 at the client application 122 may only accommodate three payment methods (Visa 289, Mastercard 290, and Custom slot or CustomCode 288). In these circumstances, the transform module 131 may transform a response from the database 130 using the current version of the schema definition 280 (Visa 289, Mastercard 290, Amex 292 and Discover) as Visa 288, Mastercard 290, CustomCode, and CustomCode. Thus using a predefined slot included in the schema definition when created, subsequent changes to the schema definition may not render a client application 124 inoperable due to the changes. It will be appreciated that a plurality or many custom slots 288 may be provided at different points in the structure of the schema definition 280.
In the exemplary network-based commerce facility 12, the data schema may also include other elements such as auction types, currency types, feedback types, country, and so on. It will be appreciated that the explanation above using payment types is merely an example of the use of a custom slot 288. It will be appreciated that a change in any element in a database schema may be accommodated by using the custom slot or CustomCode.
In an embodiment, the network-based commerce system 12 has a dictionary at the backend that lists well-defined languages which the network-based commerce facility 12 understands. For example, concepts supported by the network-based commerce facility may include payment terms, shipping services, currency, duration, auction type, display enhancements, and so on. These concepts may have a plurality of dictionary terms each relating to a concept. An example of dictionary terms associated with shipping services could be “UPS” and “USPS”. The dictionary may be exact in that it defines United Parcel Service of America as “UPS” and not “United Parcel Service of America” and, likewise, the dictionary may define the United States Postal Services as “USPS” not “United States Postal Service”. If, for example, FedEd was subsequently added to the schema definition at the server system 125, it would be categorized as CustomCode if the version of the schema definition at the client application 124 was created before its introduction.
In an example embodiment, a mapping function may be performed by the transform module 131. For example, if word “W3” is not provided in the client definitions, then the transform module maps “W3” to the CustomCode or reserved element. This functionality may be applied in any environment which exposes a dictionary which defines a system, for example, any piece of software code having static data elements.
Thus, in an embodiment, one or more special reserved values or CustomCodes may be provided. When a server is out of sync with a client, the CustomCode or reserved value may be communicated to the client instead of a value that would be unknown to the client. For example, slots or values may be reserved for in an XML schema. The slots or values may be used to return schema object(s) which are not present on the client due to its outdated version. SOAP APIs work on objects based on input and output objects (and not XML) from end-client and server perspectives. The transport payload may still however be XML. The objects and the transport payload may be based on predefined XML schemas.
Referring in particular to
The development application 502 may be used by the third-party system 122 to gain programmatic access to server systems 125 of the network-based commerce facility 12. In an example auction environment, such development applications may allow a third-party to bulk upload auction listings, bulk delete auction listing, modify auction listing in a bulk-fashion, monitor the status of a plurality of listings and so on.
In one example embodiment, the development application 502 may communicate with the network-based commerce facility 12 using a business language. However, it will be appreciated that any programming language may be used. In one example mode of operation, the network-based commerce system 12 creates the development application 502 and users or third-parties may download it. It will be appreciated that a third-party may download components of an application (e.g., a System Development Kit) that are then included or integrated within a client application 124. It will be appreciated that API servers 125 at the network-based commerce facility 12 may support client application that may be Java-based, desktop-based, or server-based applications resident on the third-party system 122.
As described above, when network-based commerce system 12 may (e.g., regularly) change features on its backend server(s), for example, on the API server(s) 126, such changes may be recorded. For example, a version number or identifier may be included in each revision or change. Examples of such features include new functionality within an action supported. For example, the network-based commerce system 12 may start to allow shipping to Canada and, accordingly, addition of an associated action may be required. The new action may, for example, be “create automatic shipping labels.” It may not be practical to release a new version of the development application 502 each time new functionality is added to the server system 125.
In an embodiment, the development application 502 includes an API call component 508 (to make a call to the API server 126), wrappers 506, an integration library 510 which calls and docks to the database 130 at the network-based commerce system 12, and utilities 504. The utilities, in an embodiment, are basically useful functions that are written to combine various calls and other functions.
In an embodiment, the auto-update module 503 changes the calling mechanism and the integration library to support the latest features without having the network-based commerce system 12 to create a new version of the client application 124.
The generation of the new API call data objects (see block 528) may include generating language specific containers (see block 540 in
The generation of the integration library may include updating the integration library to understand any new dictionary terms (see block 550 in
The example computer system 400 includes a processor 402 (e.g., a central processing unit (CPU) a graphics processing unit (GPU) or both), a main memory 404 and a static memory 406, which communicate with each other via a bus 408. The computer system 400 may further include a video display unit 410 (e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)). The computer system 400 also includes an alphanumeric input device 412 (e.g., a keyboard), a cursor control device 414 (e.g., a mouse), a disk drive unit 416, a signal generation device 418 (e.g., a speaker) and a network interface device 420.
The disk drive unit 416 includes a machine-readable medium 422 on which is stored one or more sets of instructions (e.g., software 424) embodying any one or more of the methodologies or functions described herein. The software 424 may also reside, completely or at least partially, within the main memory 404 and/or within the processor 402 during execution thereof by the computer system 400, the main memory 404 and the processor 402 also constituting machine-readable media.
The software 424 may further be transmitted or received over a network 426 via the network interface device 420.
While the machine-readable medium 422 is shown in an example embodiment to be a single medium, the term “machine-readable medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, and/or associated caches and servers) that store the one or more sets of instructions. The term “machine-readable medium” shall also be taken to include any medium that is capable of storing, encoding or carrying a set of instructions for execution by the machine and that cause the machine to perform any one or more of the methodologies of the present invention. The term “machine-readable medium” shall accordingly be taken to include, but not be limited to, solid-state memories, and optical and magnetic media.
Although the present invention has been described with reference to specific example embodiments, it will be evident that various modifications and changes may be made to these embodiments without departing from the broader spirit and scope of the invention. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US5717924 *||Jul 7, 1995||Feb 10, 1998||Wall Data Incorporated||Method and apparatus for modifying existing relational database schemas to reflect changes made in a corresponding object model|
|US6119130 *||Mar 28, 1996||Sep 12, 2000||Oracle Corporation||Method and apparatus for providing schema evolution without recompilation|
|US6324693 *||Aug 17, 1999||Nov 27, 2001||Siebel Systems, Inc.||Method of synchronizing independently distributed software and database schema|
|US6370566||Apr 10, 1998||Apr 9, 2002||Microsoft Corporation||Generating meeting requests and group scheduling from a mobile device|
|US6772180 *||Jan 22, 1999||Aug 3, 2004||International Business Machines Corporation||Data representation schema translation through shared examples|
|US6779184||Jan 21, 1999||Aug 17, 2004||Oracle International Corporation||Method for loosely coupling object oriented and non-object oriented applications in a messaging-based communication infrastructure|
|US6847974 *||Jul 25, 2001||Jan 25, 2005||Us Search.Com Inc||Method and apparatus for intelligent data assimilation|
|US20030110176 *||Dec 6, 2001||Jun 12, 2003||Oliver Morgan||Maintaining interoperability of systems that use different metadata schemas|
|US20030191757 *||Apr 8, 2003||Oct 9, 2003||International Business Machines Corporation||Lightweight Directory Access Protocol interface to directory assistance systems|
|US20040010791||Dec 20, 2002||Jan 15, 2004||Vikas Jain||Supporting multiple application program interfaces|
|US20040103098 *||Nov 21, 2002||May 27, 2004||Microsoft Corporation||Synchronizing centralized data store from distributed independent data stores using fixed application programming interfaces|
|US20040216147||Jul 18, 2002||Oct 28, 2004||Motorola, Inc.||Component based application middleware framework|
|US20050015439||Jul 15, 2003||Jan 20, 2005||Ekambaram Balaji||Flexible architecture component (FAC) for efficient data integration and information interchange using web services|
|US20050050056 *||Aug 25, 2003||Mar 3, 2005||Oracle International Corporation||Mechanism to enable evolving XML schema|
|US20050138648||Nov 24, 2004||Jun 23, 2005||Zahid Ahmed||API and business language schema design framework for message exchanges|
|WO2005052759A2||Nov 24, 2004||Jun 9, 2005||Ebay Inc.||Business language schema design framework|
|1||*||Erik Drolshammer, Improved Backward Compatibility and API Stability with Advanced Continuous Integration, Norwegian University of Science and Technology, Jun. 2007.|
|2||U.S. Appl. No. 10/997,767 Final Office Action mailed Feb. 4, 2009, 8 pgs.|
|3||U.S. Appl. No. 10/997,767, Advisory Action mailed Apr. 23, 2009, 3 pgs.|
|4||U.S. Appl. No. 10/997,767, Non-Final Office Action mailed Jul. 6, 2009, 13 pgs.|
|5||U.S. Appl. No. 10/997,767, Notice of Allowance mailed Jan. 22, 2010, 14 pgs.|
|6||U.S. Appl. No. 10/997,767, Notice of Allowance mailed May 17, 2010, 10 pgs.|
|7||U.S. Appl. No. 10/997,767, Response filed Apr. 6, 2009 to Final Office Action mailed Feb. 4, 2009, 3 pgs.|
|8||U.S. Appl. No. 10/997,767, Response filed Nov. 6, 2009 to Non Final Office Action mailed Jul. 6, 2009, 11 pgs.|
|9||*||Web Services Description Language (WSDL) Version 1.2 Part 3: Bindings, W3C Working Draft Jun. 11, 2003, 38 pages http://www.w3.org/TR/2003/WD-wsdl12-bindings-20030611/.|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US8352968||Jan 4, 2011||Jan 8, 2013||Ebay Inc.||API and business language schema design framework for message exchanges|
|US8606824||Oct 19, 2010||Dec 10, 2013||Ebay Inc.||Automatic data adjustment based on database schemas|
|US8631422 *||Sep 4, 2012||Jan 14, 2014||Ebay Inc.||Business event processing|
|US8769538||Dec 9, 2013||Jul 1, 2014||Ebay Inc.||Business event processing|
|US8959532 *||Mar 31, 2014||Feb 17, 2015||Ebay Inc.||Business event processing|
|US9058343||Oct 11, 2013||Jun 16, 2015||Ebay Inc.||Backward compatibility in database schemas|
|US9122716||Dec 13, 2012||Sep 1, 2015||Shoretel, Inc.||Database upgrade management|
|US9152989||Jan 8, 2015||Oct 6, 2015||Ebay, Inc.||Business event processing|
|US9201711||Jan 7, 2013||Dec 1, 2015||Ebay Inc.||API and business language schema design framework for message exchanges|
|US9424025 *||Jun 24, 2014||Aug 23, 2016||International Business Machines Corporation||Verification of backward compatibility of software components|
|US9430228 *||Dec 16, 2013||Aug 30, 2016||International Business Machines Corporation||Verification of backward compatibility of software components|
|US9589286||Sep 23, 2015||Mar 7, 2017||Ebay Inc.||Business event processing|
|US20110035417 *||Oct 19, 2010||Feb 10, 2011||Ebay Inc.||Backward compatibility in database schemas|
|US20110167430 *||Jan 4, 2011||Jul 7, 2011||Ebay Inc.||Api and business language schema design framework for message exchanges|
|US20120330775 *||Sep 4, 2012||Dec 27, 2012||Ebay Inc.||Business event processing|
|US20140214477 *||Mar 31, 2014||Jul 31, 2014||Ebay Inc.||Business event processing|
|US20150169319 *||Dec 16, 2013||Jun 18, 2015||International Business Machines Corporation||Verification of backward compatibility of software components|
|US20150169320 *||Jun 24, 2014||Jun 18, 2015||International Business Machines Corporation||Verification of backward compatibility of software components|
|U.S. Classification||707/803, 711/162|
|International Classification||G06F17/00, G06F3/00, G06F9/46|
|Cooperative Classification||H04L67/10, G06F17/30297, G06Q30/08, G06F17/30292|
|Mar 8, 2005||AS||Assignment|
Owner name: EBAY INC., CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:COHEN, ALON;AVALANI, BHAVEN;REEL/FRAME:016371/0328
Effective date: 20050308
|Oct 24, 2005||AS||Assignment|
Owner name: EBAY INC., CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:COHEN, ALON;AVALANI, BHAVEN;AHMED, ZAHID;REEL/FRAME:016931/0808;SIGNING DATES FROM 20051010 TO 20051012
Owner name: EBAY INC., CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:COHEN, ALON;AVALANI, BHAVEN;AHMED, ZAHID;SIGNING DATES FROM 20051010 TO 20051012;REEL/FRAME:016931/0808
|Apr 30, 2014||FPAY||Fee payment|
Year of fee payment: 4
|Jul 23, 2015||AS||Assignment|
Owner name: PAYPAL, INC., CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:EBAY INC.;REEL/FRAME:036163/0469
Effective date: 20150717