方法元素 method--element

內容模型 content-model-10

方法:==(說明 | 引數)

屬性 attributes-10

  • @_operation (字串)
  • @access (字串)
  • @const (布林值)
  • @hidden (布林值)
  • @label (字串)
  • @library (字串)
  • @name (MNTOKEN)
  • @pkonly (布林值)
  • @static (布林值)

父項 parents-10

<methods><interface />

子系 children-10

  • <help>
  • <parameters>

說明 description-10

此元素可讓您定義SOAP方法。

使用與使用內容 use-and-context-of-use-7

SOAP方法可啟用應用程式處理作業。

宣告新方法(非原生)需要「@library」:用於程式庫的名稱空間和名稱與宣告所在綱要的名稱空間和名稱無關。

屬性說明 attribute-description-10

  • 存取(字串):此屬性會定義使用方法的存取控制。 如果缺少此屬性,則必須進行識別。 可用的值為:「匿名」、「管理員」和「sql」。
  • 常數(布林值):如果已啟動,則此屬性表示宣告的方法將變更實體
  • 標籤(字串):方法的標籤。
  • 資料庫(字串):此方法並非為應用程式所特有。 此屬性使用找到方法定義的方法程式庫的值(nms:mylibrary.js)。
  • 名稱(MNTOKEN):唯一方法名稱。
  • 靜態(布林值):如果此屬性已啟動,方法會被視為自治,則在呼叫方法時,必須將所有引數指定給方法。

範例 examples-7

「訂閱」現成方法的定義:


<method name="Subscribe" static="true">
      <help>Creation of update of a recipient's subscription to an information service</help>
      <parameters>
        <param desc="Name of the information service(s) (separated with commas)"
               name="serviceName" type="string"/>
        <param desc="Recipient to subscribe and possibly create" name="recipient"
               type="DOMElement"/>
        <param desc="Create the recipient if they don't exist" name="create" type="boolean"/>
      </parameters>
    </method>
recommendation-more-help
601d79c3-e613-4db3-889a-ae959cd9e3e1