I have a web service that I am consuming on my .net web form.
I am able to connect and accept return information fine.
However, the web service returns 5 parameters. I want to set a local variable to the value of each parameter returned but only want to call the web service once.
Can anyone suggest sample code for doing this?
Here is an example:
Instead of using the following way of assignining a local variable to the return values of returnID and returnNam...
Dim ID As String = myservice.specificmethod("x", "xx", "user", "123456", "aa", 1).returnID
Dim Name As String = myservice.specificmethod("x", "xx", "user", "123456", "aa", 1).returnName
I would like to accomplish the same thing but only call the web service ONCE...
Thanks in advance.
I am able to connect and accept return information fine.
However, the web service returns 5 parameters. I want to set a local variable to the value of each parameter returned but only want to call the web service once.
Can anyone suggest sample code for doing this?
Here is an example:
Instead of using the following way of assignining a local variable to the return values of returnID and returnNam...
Dim ID As String = myservice.specificmethod("x", "xx", "user", "123456", "aa", 1).returnID
Dim Name As String = myservice.specificmethod("x", "xx", "user", "123456", "aa", 1).returnName
I would like to accomplish the same thing but only call the web service ONCE...
Thanks in advance.