Service Development Help : Building Java Services in Your Own IDE : Requirements for the Java Service Source Code
Requirements for the Java Service Source Code
When you build a Java service in your own IDE, ensure it meets the following requirements:
*The Java service must take a single IData object as input. For more information, see IData Object for Java Service Input and Output
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.
Building Java Services in Your Own IDE
How Java Services are Organized on Integration Server
IData Object for Java Service Input and Output
Adding Comments to Your Java Code for the jcode Utility
Using the jcode Utility
Copyright © 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback