LibraryLink ToToggle FramesPrintFeedback

Implementing the Service Logic

You implement the service's logic using the required invoke property of the WebServiceProvider variable. This property is a function that accepts one input argument, a javax.xml.transform.dom.DOMSource node, and returns a document of the same type. The invoke function can manipulate either the input or the output documents using the regular Java DOMSource class interface, just as a Java application would.

Example 1.2 shows an invoke function for a simple JavaScript service implementation.