发明名称 Testing compatibility with web services
摘要 Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for testing the compatibility of client devices with web services. In one aspect, a method includes receiving a request from a first client device; obtaining a response to the request from a web service, wherein the web service provides responses according to a web service schema that defines a plurality of possible response formats, and wherein the response conforms to a first response format of the plurality of possible response formats; selecting a second, different response format of the plurality of possible response formats defined by the web service schema; modifying the response to generate a modified response, wherein the modified response conforms to the second, different response format; and sending the modified response to the first client device.
申请公布号 US9369544(B1) 申请公布日期 2016.06.14
申请号 US201313766584 申请日期 2013.02.13
申请人 Google Inc. 发明人 Morgan David;Semturs Christopher
分类号 G06F15/16;H04L29/06;G06F11/36;H04L29/08 主分类号 G06F15/16
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 1. A method performed by data processing apparatus, the method comprising: receiving a request from a first client device; obtaining an original response to the request from a web service, wherein the web service provides responses according to a web service schema that specifies requirements for the format of the responses provided by the web service, wherein the requirements are satisfied by a plurality of possible response formats, wherein the original response conforms to a first response format of the plurality of possible response formats that satisfy the requirements specified by the web service schema, wherein the web service is an Extensible Markup Language (XML) service, and wherein the web service schema is an XML schema; selecting a second, different response format of the plurality of possible response formats that each satisfy the requirements for responses specified by the web service schema for responses provided by the web service, wherein selecting the second, different response format comprises selecting a response format that (i) is different from both the first response format and from one or more response formats selected for one or more previous responses to requests received from the first client device and (ii) satisfies the requirements for responses specified by the web service schema; modifying the original response so that it conforms to the second, different response format instead of the first response format to generate a modified response, wherein both the original response and the modified response satisfy the requirements specified by the web service schema for responses provided by the web service; and sending the modified response to the first client device in place of the original response.
地址 Mountain View CA US