Web Service - Problems with STRINGARRAY_HOLDER

Hello,I’m new to this forum and I hope you can help me.

I’m developing a Web Service with Lotusscript. The Web Service makes a fulltext search in a database and returns the value of some specified fields from the found documents.

My problem is that some of the fields are multi-value fields.

So far as I found out, you must declare a STRINGARRAY_HOLDER object to return arrays.

I’ve done this.

At the beginning of my class I have declared some variables like this

Class SearchWebService

Public approverList As STRINGARRAY_HOLDER

Public createdDate AS XSD_DATETIME

Public editorList As STRINGARRAY_HOLDER

Public id As String

Public Function getDocContents(…)

End Function

Private Function returnMultiValue(…) As STRINGARRAY_HOLDER

End Function

Private Function handleDates(…) As XSD_DATETIME

End Function

End Class

When I call my Web Service (I use Eclipse for this) I always get the soap error message “Holder object APPROVERLIST in web service SearchWebService, method SEARCHDOCUMENTS has no public members”

Something with the statement

Public approverList As STRINGARRAY_HOLDER

must be wrong but I don’t know where the mistage is.

I have searched this forum but I haven’t found something belonging to this problem.

Do you have any ideas?

Subject: Solution

I have found a solution now.Instead of declaring my public variables as STRINGARRAY_HOLDER I declare them as Variant

Like this:

Public editorList As Variant

My Funktion returnMultiValue now returns a Variant instead of an STRINGARRAY_HOLDER.

Now everything works fine.

Subject: Nobody who could help?

Is there nobody who could help?

Subject: try this

You tried to go too deep in the problem ;)Here You have article about using complex data types in webservices.

Subject: RE: try this

Thank you for your answer.

But I’ve read this article several times and it does not help solving my problem.

I also did not found anything about STRINGARRAY_HOLDER in this article. The example database only works with normal strings and not with multi-value fields.

Subject: Could it be…

I have written to Functions within my Web Service which will return a STRINGARRAY_HOLDER.

Could it be that this is the mistake and I have to write only one function?

Please. Any suggestions are welcome.