' NOTE: You can use the "Rename" command on the context menu to change the interface name "IService" in both code and config file together. $if$ ($targetframeworkversion$ <= 3.5) _$endif$ Public Interface IService $if$ ($targetframeworkversion$ <= 3.5) _$endif$ Function GetData(ByVal value As Integer) As String $if$ ($targetframeworkversion$ <= 3.5) _$endif$ 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. $if$ ($targetframeworkversion$ <= 3.5) _ 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 $else$ Public Class CompositeType Public Property BoolValue() As Boolean Public Property StringValue() As String $endif$ End Class