Is it possible to return different values depending on the number of times a machine made a request to an asmx web server, if so how?

Viewed 21

I am new to C# and Web Services so for better understanding I am gonna ask using an example. I have a WebService1.asmx.cs that can do 4 math operations with 2 given integers. Is it possible to use a number as an input and the second number as the times a machine used the web service? Using Visual Studio 2022 .NET Framework version 4.6.2 on Windows 11

Example:

from suds import Client
url="https://localhost:44337/WebService1.asmx?WSDL"
c = Client(url)
result = c.service.Add(2,3) 
print(result) 

#Output is 5

To

from suds import Client
url="https://localhost:44337/WebService1.asmx?WSDL"
c = Client(url)
result = c.service.Add(2) 
print(result) 

#In this case we make 1 request before this one so 2+1=3 and the next one will output 4 and so on.
0 Answers
Related