Requirements for the Java Service Source Code
When you build a Java service in your own IDE, ensure it meets the following requirements:
The following code shows the basic framework for a Java service that takes a single instance of com.wm.data.IData as input and returns output in the pipeline.
public final static void myservice(IData pipeline)
throws ServiceException
{
return;
}
Note:
Services can throw ServiceException. Do not call Service.throwError.
The Java class must import the following Java packages.
com.wm.data.*;
com.wm.app.b2b.server.ServiceException;
com.wm.app.b2b.server.Service;
The Java class must be public.
For performance reasons, it is recommended that you make the Java class final.
Note:Integration Server provides classes that you can use with Java services that you build. For a description of these classes, see webMethods Integration Server Java API Reference.