Skip to main content

Testing the Proxy Classes

Use the Terminal to create an instance of ContactApplication.SOAPServiceSoap in order to test the Web Service:

  1. Open the Terminal and use the ZN command to switch to the namespace in which ContactApplication.SOAPServiceSoap is installed. In this case the proxies are installed in SAMPLES.

    
    USER> ZN "SAMPLES"
    SAMPLES>
    
  2. Create an instance of ContactApplication.SOAPServiceSoap. Use its GetContact to retrieve a Contact instance.

    
    SAMPLES> Set service = ##class(ContactApplication.SOAPServiceSoap).%New()
    SAMPLES> Set contact = service.GetContact(1)
    
  3. WRITE the values of the Contact instance's Name and ContactType properties.

    
    SAMPLES> Write contact.Name
    Vanzetti,Dmitry W.
    SAMPLES> Write contact.ContactType
    Personal
    
FeedbackOpens in a new tab