' NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in App.config. _ Public Interface IService1 _ Function GetData(ByVal value As Integer) As String _ Function GetDataUsingDataContract(ByVal composite As CompositeType) As CompositeType ' TODO: Add your service operations here End Interface ' Use a data contract as illustrated in the sample below to add composite types to service operations _ Public Class CompositeType Private boolValueField As Boolean Private stringValueField As String _ Public Property BoolValue() As Boolean Get Return Me.boolValueField End Get Set(ByVal value As Boolean) Me.boolValueField = value End Set End Property _ Public Property StringValue() As String Get Return Me.stringValueField End Get Set(ByVal value As String) Me.stringValueField = value End Set End Property End Class