Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
themeEclipse
titleNewFacetInstance HelloWorld Example
linenumberstrue
<NewPackage>
<NewFacetInstance fid="helloworld" name="HelloWorld" type="SffMsgFacet">
  <OnActivate/>
  <OnOpen ModifyPipeline="HttpServerExtensionArgs"/>
  <OnRequest>
    <DoResponse>
      <Process>
        <Message type="text">
          <Value>
            Hello World from FacetScript!
          </Value>
        </Message>
      </Process>
    </DoResponse>
  </OnRequest>
  <OnResponse/>
  <OnClose/>
</NewFacetInstance>

...


</NewPackage>

Once the NewFacetInstance is deployed on TQLEngine following EndPoint will be generated:

http://localhost:8080/fid-helloworld

which produces HTTP Response as

Hello World from FacetScript!

For FacetScript Language specs, see here.