首页>
外国专利>
COMMON MESSAGE HEADER BEARER METHOD AND DEVICE FOR CONVERTING SIMPLE OBJECT ACCESS PROTOCOL APPLICATION PROGRAMMING INTERFACE (SOAP API) INTO REPRESENTIONAL STATE TRANSFER APPLICATION PROGRAMMING INTERFACE (REST API)
COMMON MESSAGE HEADER BEARER METHOD AND DEVICE FOR CONVERTING SIMPLE OBJECT ACCESS PROTOCOL APPLICATION PROGRAMMING INTERFACE (SOAP API) INTO REPRESENTIONAL STATE TRANSFER APPLICATION PROGRAMMING INTERFACE (REST API)
A common message header bearer method for converting a SOAP API into a REST API includes: determining a REST API common message bearing field, where the common message bearing field is a field in a REST API message header and complies with a following format: one header field name + one header field value + multiple attribute-value pairs (10); and bearing a relevant content of a SOAP message header in the common message bearing field in a format of the attribute-value pairs (11). Embodiments of the present invention further provide an apparatus for converting a SOAP API into a REST API. Embodiments of the present invention prevent problems of existing conversion solutions, such as strong association between a service message and a message header, and the necessity of parsing a whole service message body to complete authorization required by a message header during program processing; and meanwhile, effectively prevent a problem of slow bottom-layer negotiation between a client and a server due to too many header field names.
展开▼