.NET Web Service with VB6 and Soap Toolkit 3
-
I'm trying to consume a C# Web Service using VB6 and Soap Toolkit 3. Everything works fine when I'm passing/returning simple data types such as strings and integers but I'm having trouble using complex data types. The class I'm trying to pass is defined in my C# WS as public class AlertMessage { public string AlertMessage; public string AlertComment; } How do I treat this in VB and how do I pass it? Currently, I have created an ActiveX DLL with a class AlertMessage as follows: Private mAlertText As String Private mAlertComment As String Public Property Get AlertText() As String AlertText = mAlertText End Property Public Property Let AlertText(ByVal Value As String) mAlertText = Value End Property Public Property Get AlertComment() As String AlertText = mAlertComment End Property Public Property Let AlertComment(ByVal Value As String) mAlertComment = Value End Property When trying to pass an AlertMessage to the WS I get the following error: SoapMapper: Saving SoapMapper alertMessage failed. No such interface supported. When trying to return an AlertMessage from the WS I get a type mismatch error. My Soap response looks as follows: Hello There My Comment Can anyone help? Thanks, Cory