Problem with Domino web services and arrays

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.

Subject: Problem with Domino web services and arrays

You might get a more useful response here:

http://www-10.lotus.com/ldd/beta/nd7pubbeta.nsf/DateAllFlatweb?openView&login

Not only is it the ND7 forum, it’s also the place where the nice developer people hang around, so if it’s a bug they don’t know about, they’ll be glad to hear about it. It’s hard to tell what’s going on from what you posted; the service descriptor element is missing a space, and there are no element terminators for the outer elements.