Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

プロキシ・クラスのテスト

Web サービスをテストするには、ターミナルを使用して ContactApplication.SOAPServiceSoap のインスタンスを作成します。

  1. ターミナルを開き、ZN コマンドを使用して、ContactApplication.SOAPServiceSoap がインストールされているネームスペースに切り替えます。この場合、プロキシは SAMPLES にインストールされています。

    
    USER> ZN "SAMPLES"
    SAMPLES>
    
    
  2. ContactApplication.SOAPServiceSoap のインスタンスを作成します。GetContact を使用して、Contact インスタンスを取得します。

    
    SAMPLES> Set service = ##class(ContactApplication.SOAPServiceSoap).%New()
    SAMPLES> Set contact = service.GetContact(1)
    
    
  3. Contact インスタンスの Name プロパティと ContactType プロパティの値を WRITE します。

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