US 11,989,284 B2
Service API invoking method and related apparatus
Yong Wang, Shenzhen (CN); Kai Pan, Shanghai (CN); Cuili Ge, Beijing (CN); and Jing Chen, Shanghai (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed on Oct. 9, 2020, as Appl. No. 17/066,902.
Application 17/066,902 is a continuation of application No. PCT/CN2019/081861, filed on Apr. 9, 2019.
Claims priority of application No. 201810312734.1 (CN), filed on Apr. 9, 2018.
Prior Publication US 2021/0081527 A1, Mar. 18, 2021
Int. Cl. G06F 21/54 (2013.01); G06F 9/54 (2006.01); G06F 21/51 (2013.01); H04L 67/133 (2022.01)
CPC G06F 21/54 (2013.01) [G06F 9/547 (2013.01); G06F 21/51 (2013.01); H04L 67/133 (2022.05)] 20 Claims
OG exemplary drawing
 
1. A method, comprising:
sending, by an invoker, a first invoking request to an application programming interface (API) exposing function entity using an original security method, wherein the first invoking request is configured to invoke a service API;
receiving, by the API exposing function entity, the first invoking request from the invoker;
sending, by the API exposing function entity, a response message of the first invoking request to the invoker, wherein the response message comprises a cause value indicating that the service API failed to be invoked because of a security method error from a mismatch between the original security method of the invoker and a new security method of the API exposing function entity;
receiving, by the invoker, the response message from the API exposing function entity;
obtaining, by the invoker, the new security method of the API exposing function entity;
sending, by the invoker, a second invoking request to the API exposing function entity using the new security method, wherein the second invoking request comprises a name of the service API, and wherein the second invoking request is configured to invoke the service API; and
receiving, by the API exposing function entity, the second invoking request from the invoker.