Hi. Have you ever tried to serialize an array of selfdefined objects in notes? I tried to do it but it didn’t seem to work. I have to say that this is my first web service with .NET and Domino.
My Lotusscript Library:
Public Class Contacts
Public Collection() As Contact
Public Sub New
Redim Collection(0)
End Sub
Public Function AppendItem(Contact As Contact)
Set Collection(Ubound(Collection)) = Contact
Redim Preserve Collection( 0 To Ubound(Collection)+1 )
End Function
…
End Class
Public Class Contact
Public strFirstName As String
Public strLastName As String
…
End Class
This is the webservice function:
Public Function GetContacts() As Contacts
I used .NET Webservice Studio to test my Domino webservice. The Domino response looks like this:
<ns1:GETCONTACTDIFFERENCESReturn xsi:type=“ns1:CONTACTS”>
Neo
Anderson
…
But in Webservice Studio and also in VS.NET the collection is null:
Body > CONTACTS result > CONTACT() COLLECTION = null
The length of CONTACT() is 0 and IsNull=True.
Is this an error of Lotus Domino 7 Beta3?
I think the count of my collection is missing in the server response. Is this right?
Thanks for your help.
Michael
PS: I can post more code if needed.