In API testing, you can test whether the functionality of the current API is intact. To perform an API test, complete the configurations on the API Test page.
The com.antcloud.session.validate operationType is the dedicated interface of the MSS component. If the com.antcloud.session.validate operationType is configured and gateway encryption is enabled, the 6004 error is reported when the operationType is tested in APITest.
Procedure
Choose Manage APIs > More > API Test in the Operation column of the API list to open the following page:
On the API Test page, configure the following:
Request path: Enter the gateway address of the application. For example, the public cloud address of the mPaaS mobile gateway is
https://cn-hangzhou-mgs-gw.cloud.alipay.com/mgw.htm
.ImportantThe address must contain a
/mgw.htm
. Otherwise, the request fails.Request parameter: By default, data in the request parameters format is simulated. Adjust the value based on the business meaning.
Add Header: You can add Request headers as needed.
Click Test. The following result appears:
Response body: the response data returned by the service.
Response header: includes the gateway conventions and response headers returned by the service.
Result-Status: For more information, see Gateway result codes.
Mgw-TraceId: the TraceId of the request, which can be used for link analysis.