There are many cases where a web service needs to return a group of values in a single response. This response may consist of multiple values of varying data types. This is accomplished in a similar fashion to returning arrays. For the next example, we will return a complex data type called Address
, consisting of multiple strings and a numeric value within a single response. For this example, we will use the following document type:
We will also use the following data for this example:
We will update the web service by adding an AddressInfo
class to capture this data from Domino and add a GetAddress
function to the web‑service class handler to return the data to web‑service client requests.
Here is the updated code listing:
%INCLUDE "lsxsd.lss" Dim session As NotesSession Class TelephoneNumberInfo Public TelephoneNumbers() As String End Class Class AddressInfo Public Street As String Public City As String...