Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

Testing a Web Method that Returns a Collection from the Terminal

Once again we can test the service using the Terminal. Here are the steps:

  1. Open the Terminal in the namespace in which you are working.

  2. Use the WSDL to regenerate a client for the service and then instantiate the client. See Testing the Service from the Terminal for the steps.

  3. Use the client to execute the GetContactByName service. In the following code client points to the client created in the previous step.

    
    USER>Set list = client.GetContactByName("D")
    USER>Write list.Count()
    1
    USER>Set contact = list.GetAt(1)
    USER>Write contact.Name
    Doe,John
    
    
FeedbackOpens in a new tab