A
Andrew
I am trying to access a web service method (that was written in C#) which
returns a structure. I am programming my side in VB.Net.
So the c# struct looks like:
public struct mystruc {
public string result;
public int error;
}
This is what I have in my code, or more to the point, what I have
figured out that works:
Dim xSvc As some.server.WebService
Dim gString As String = xSvc.mystruct().result
So, the question is how do I return the structure into an object (using only
one call) which will allow me to access each of the structures values.
Something like this for example:
Dim xSvc As some.server.WebService
Dim gOB As Object = xSvc.mystruct()
gString = gOB.Result
dError = gOB.Error
I can't seem to find any info on this?
returns a structure. I am programming my side in VB.Net.
So the c# struct looks like:
public struct mystruc {
public string result;
public int error;
}
This is what I have in my code, or more to the point, what I have
figured out that works:
Dim xSvc As some.server.WebService
Dim gString As String = xSvc.mystruct().result
So, the question is how do I return the structure into an object (using only
one call) which will allow me to access each of the structures values.
Something like this for example:
Dim xSvc As some.server.WebService
Dim gOB As Object = xSvc.mystruct()
gString = gOB.Result
dError = gOB.Error
I can't seem to find any info on this?