NotMyRealName221
Programmer
I feel like a total newb asking this question but I'm hitting the wall with this sillyness.
I just used the wsdl.exe to create code for a SOAP service.
Speaking of which... is this really a necessary comment to put in that autogenerated code:
// This code was generated by a tool.
(who's it calling a tool?)
anywho...
I now have a bunch of objects, and arrays of objects. I can't for the life of me figure out how to use them correctly. I'm starting with a login attempt:
It gives me this error message:
Compiler Error Message: BC30311: Value of type 'Security_User' cannot be converted to '1-dimensional array of Security_User'.
I've tried setting objUser as an array but I just keep getting errors, including my least favorite "Object reference not set to an instance of an object"
The soap service does allow logging in with multiple credentials so I understand that this needs to be an array, but I can't seem to get the syntax right.
Can anyone help me?
I just used the wsdl.exe to create code for a SOAP service.
Speaking of which... is this really a necessary comment to put in that autogenerated code:
// This code was generated by a tool.
(who's it calling a tool?)
anywho...
I now have a bunch of objects, and arrays of objects. I can't for the life of me figure out how to use them correctly. I'm starting with a login attempt:
Code:
Dim objLogin As New Security_Login
Dim objUser As New Security_User
Dim objPassword As New Security_Password
objUser.username = "login"
objUser.level = 2
objPassword.password = "password"
objPassword.dataLength = 8
objLogin.user = objUser
objLogin.password = objPassword
It gives me this error message:
Compiler Error Message: BC30311: Value of type 'Security_User' cannot be converted to '1-dimensional array of Security_User'.
I've tried setting objUser as an array but I just keep getting errors, including my least favorite "Object reference not set to an instance of an object"
The soap service does allow logging in with multiple credentials so I understand that this needs to be an array, but I can't seem to get the syntax right.
Can anyone help me?