Testing the Proxy Classes
Use the Terminal to create an instance of ContactApplication.SOAPServiceSoap in order to test the Web Service:
-
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>
-
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)
-
WRITE the values of the Contact instance's Name and ContactType properties.
SAMPLES> Write contact.Name Vanzetti,Dmitry W. SAMPLES> Write contact.ContactType Personal