<?xml version="1.0" encoding="utf-8"?><finScript version="1.00" exportedUtcDate="2018-08-12T23:34:46.0000000"><CreatedUserId>ADMIN</CreatedUserId><CreatedUtcDate>2018-06-19T21:16:39.2630000</CreatedUtcDate><UpdatedUserId>ADMIN</UpdatedUserId><UpdatedUtcDate>2018-06-19T21:27:11.2870000</UpdatedUtcDate><ScriptId>FL.WSCLASS</ScriptId><Description>Function Library - Web Service Classes</Description><ScriptType>FunctionLibrary</ScriptType><Active>true</Active><AllowUI>false</AllowUI><Category /><Code>' ###################################################
' Function libray to hold custom Web Service classes.
'
' Current Version: 1.00.00 (19/05/2015)
'
' Usage: Function Library.
'
' Revision Notes
' ==============
' 19/05/2015  1.00.00   ISS.ME    Created.
' ########################################

''' &lt;summary&gt;
''' Custom Account class
''' &lt;/summary&gt;
&lt;System.Xml.Serialization.XmlType("Account")&gt;
Public Class clsCustomAccount

  Public AccountId As String
  Public AccountName As String
  Public AccountTypeId As String
  Public DateOpened As Date
  Public Balance As Decimal
  Public BalanceOverdue As Decimal

  ' Contructors
  Public Sub New()
  End Sub

  Public Sub New(clientAccount As finClientAccount)
    ' Update fields from finClientAccount
    With clientAccount
      Me.AccountId = .AccountId
      Me.AccountName = .Name
      Me.AccountTypeId = .AccountTypeId
      Me.DateOpened = .DateOpened
      Me.Balance = .Balance
      Me.BalanceOverdue = .BalanceOverdue
    End With
  End Sub

End Class

''' &lt;summary&gt;
''' Custom Client class
''' &lt;/summary&gt;
&lt;System.Xml.Serialization.XmlType("Client")&gt;
Public Class clsCustomClient

  Public ClientId As String
  Public ErrorMessage As String
  Public FirstName As String
  Public LastName As String
  Public DateOfBirth As Date
  Public Accounts As List(Of clsCustomAccount)

  ' Constructors
  Public Sub New()
  End Sub

  Public Sub New(client As finClient)
    Dim ClientAccount As finClientAccount
    Dim CustomAccount As clsCustomAccount

    ' Update fields from finClient
    With client
      Me.ClientId = .ClientId
      Me.FirstName = .FirstName
      Me.LastName = .LastName
      Me.DateOfBirth = .DateOfBirth

      ' Create a new list of accounts
      Accounts = New List(Of clsCustomAccount)

      ' Loop through finClient accounts and add custom account to collection
      For Each ClientAccount In client.Accounts
        CustomAccount = New clsCustomAccount(ClientAccount)
        Accounts.Add(CustomAccount)
      Next
    End With
  End Sub

  ' Don't serialise if Date.MinValue
  Public Function ShouldSerializeDateOfBirth() As Boolean
    Return (DateOfBirth &lt;&gt; Nothing)
  End Function

End Class

''' &lt;summary&gt;
''' Collection of custom clients
''' &lt;/summary&gt;
&lt;System.Xml.Serialization.XmlType("Clients")&gt;
Public Class clsCustomClients : Inherits List(Of clsCustomClient)
End Class

&lt;System.Xml.Serialization.XmlType("ResponseDetail")&gt;
Public Class clsResponseDetail

  Public Status As String
  Public Message As String

End Class

&lt;System.Xml.Serialization.XmlType("ResponseDetails")&gt;
Public Class clsResponseDetails : Inherits List(Of clsResponseDetail)
End Class</Code><Language>VisualBasic</Language><Notes /><PermissionKeyExecute /><RunWithoutPrompts>false</RunWithoutPrompts><TemplateText /><TemplateTextBookmarks /><TimeoutSeconds>60</TimeoutSeconds><ParametersType>None</ParametersType></finScript>