我对在 5 个服务器上运行的相同服务进行相同的 SOAP 调用。返回的所有TWeeksHeld
集合都需要连接在一起成为同一对象的输出TDAEHeldList
版本 ( )。这是我的课程:
Partial Public Class TDAEHeldList
Private siteIdField As String
Private countField As Integer
Private returnCodeField As String
Private errorMessageField As String
Private daeWeeksHeldField() As TWeeksHeld
End Class
Partial Public Class TWeeksHeld
Private checkInField As String
Private resortNameField As String
Private countryField As String
Private regionField As String
Private localityField As String
Private weekIdField As String
Private bedroomsField As String
Private sleepsField As String
Private bookingTypeField As String
Private resortIdField As String
Private timeToExpiryField As String
Private specialFlagField As String
Private extMemberNoField As String
Private stockDisplayField As String
Private ownerBusCatCodeField As String
End Class
每次调用都需要将集合的内容添加daeWeeksHeldField()
到输出类的daeWeeksHeldField()
集合中。
我有以下工作:
Dim returnData As New TDAEHeldList
Dim weeksOnHold As New TDAEHeldList
Dim weeksOnHoldArray As TWeeksHeld
weeksOnHold = WSCaller.GetForeignWeeksOnHold(siteID,affiliateMemberID)
然后尝试添加
weeksOnHoldArray += String.Concat(weeksOnHoldArray, weeksOnHold.daeWeeksHeldField)
其次是:
returnData.daeWeeksHeldField = weeksOnHoldArray.ToArray(GetType(TWeeksHeld))
我也试过:
for Each x As Object In weeksOnHold.daeWeeksHeld
weeksOnHoldArray.Add(x)
Next
加上其他一些谷歌搜索的技术。我想做的事情是否可能,如果是,它是如何完成的?