Skip to content

Published Object Member Meta-Data Tag

Published Meta-Tag

See Also: Object Member Meta-Data Tags

Purpose

Used by the Studio to indicate that a Web Object method is published (part of the exposed interface).

Applies To

  • Properties

Syntax

{ Published =
    True
  | False }

where False is the default.

Use

This meta-data tag can be set to True to make a method part of the exposed interface of a web application or web service.

This meta-data tag may only be applied to methods that reside in objects of classes cWebBusinessProcess or cWebService, or objects of subclasses of cWebBusinessProcess or cWebService.

See Web Properties, Methods and Events for information about publishing properties, methods, and events in Web Applications, not services.

Example

This sample code shows how to indicate that a method declared in a web service object should be exposed (meaning that it may be called by a client consuming the web service).

Object oMyWebService is a cWebService
    { Published = True }
    { Description = "Hello World function, returns Hello + name" }

    Function HelloWorld String sName returns String
        String sResult
        Move ("Hello, " + sName) to sResult
        Function_Return sResult
    End_Function  // HelloWorld
End_Object  // oMyWebService