Hi,
I have a webservice which needs to be serialized.
At the moment I can call the webservice as:
Call10.Process("field_a","field_b")
and the function looks like this:
Public Function Call10(ByVal User As String, ByVal Password As String) As String
If User = "user" Then
MsgBox("Correct User")
End If
If Password = "password" Then
MsgBox("Correct Password")
End If
Return "Success"
End Function
The client wants to be able to call the webservice as:
Dim Call10Input as New Call10Input
Call10Input.User = "user"
Call10Input.Password = "password"
Call10.Process(Call10Input)
I'm assuming I would have to create Call10Input as a class and then accept Call10Input into the function but I'm at a loss as to how to do this.
Any help will be greatly appreciated!