question

JulioBello-4525 avatar image
0 Votes"
JulioBello-4525 asked PranamK-0159 answered

Caching Token in SOAP-based Web Service

I developed a SOAP-based web service for internal consumption. It takes a SOAP-based web request and converts it to a JSON-based external, third-party RESTful web API request. It then takes the JSON-based external, third-party RESTful web API response and converts it to a SOAP-based web response for internal consumption. The JSON-based external, third-party RESTful web API request requires a token. The token is requested from the JSON-based external, third-party RESTful web API. The token is then sent along with the JSON-based external, third-party RESTful web API request. The token is good for four hours. I wish to cache the token and retrieve it for all subsequent JSON-based external, third-party RESTful web API requests. I only need to refresh the token when it expires.

How do I cache the token for all JSON-based external, third-party RESTful web API operations and for all subsequent requests?

dotnet-csharpdotnet-aspnet-generalwindows-wcfdotnet-aspnet-webpagesdotnet-aspnet-webapi
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JulioBello-4525 , What kind of token do you use and how do you verify the token?

0 Votes 0 ·

Hi, Theobald Du-MSFT!...

The token is a very long string. I do not verify the token. The token is obtained from the JSON-based external, third-party RESTful web API.

I wish to cache the token and retrieve it for all subsequent JSON-based external, third-party RESTful web API requests. I only need to refresh the token when it expires after four hours.

0 Votes 0 ·

1 Answer

PranamK-0159 avatar image
0 Votes"
PranamK-0159 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.