Implementation (or PortType) class -- The Java or LotusScript code defines a class that contains a public method, function, or sub for each operation in the Web service. In the WSDL document, these operations appear as <wsdl:operation> elements under <wsdl:portType>. The name of the class must match "PortType class" in the Basics tab of the properties box (the term "PortType" comes from the W3C specification for WSDL documents).
In the simple case where an operation has one output part that is not also an input part: the parameters in the Java or LotusScript code map to the <wsdl:input> message for the operation; the return value maps to the <wsdl:output> message. In other cases, for Java: output parts and inout parts map to parameters that are classes that implement the interface javax.xml.rpc.holders.Holder (StringHolder, FloatHolder, and so on); for LotusScript: output and inout parts similarly map to HOLDER classes defined in lsxsd.lss (STRING_HOLDER, SINGLE_HOLDER, and so on).
Operations may also return errors to the caller, either through a fault sub-class that corresponds to some <wsdl:fault> message specified for the operation in the WSDL document, or through direct use of the WS_FAULT base class (LotusScript), or the lotus.domino.types.Fault or java.lang.Exception classes (Java).
When you create a new Java Web service, a skeleton implementation class named Untitled is created.
If you import a WSDL document into a Web service, an implementation class is generated based on the WSDL content. The public prototype methods, functions, and subs in the class correspond to the Web service operations defined for the first <port> element of the first <service> element in the WSDL document. Other classes or types referenced in the prototype methods may also be generated from the WSDL document, along with their public data members. If you change a prototype interface, the corresponding WSDL document changes when the Web service is saved. You can monitor and prevent such changes with the "Warn if the WSDL interface is modified" property.
If you create an implementation class from scratch, its prototype methods, functions, and subs determine the messages and operations defined in the WSDL document.