Designer 10.7 | webMethods Service Development Help | Building Java Services | Java Service Editor | Source Tab
 
Source Tab
 
Protected Sections of a Java Service
Editable Sections of a Java Service
You specify the code for the Java service on the Source tab, which extends the standard Eclipse Java editor. Because the Eclipse Java editor requires source files to be in the local workspace, Designer also requires source files to be in the local workspace. To achieve this, Designer adds Java classes to a Service Development Project, which is a project with extensions to support Java services. For more information, see Service Development Projects in the Local Workspace.
The full capabilities of the Eclipse Java editor are available, for example, source formatting, code completion. However, unlike the Eclipse Java editor, the Designer Java service editor protects the sections of a Java service that contain required code to prevent structural damage to the service. The following illustrates the contents of the Source tab for a newly created service.
Java package definition
package orders.orderStatus
Add additional imports here
import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
Class definition
public final class orderStatus_checkStatus_SVC
Add extends and implements here
Primary method definition
{
/**
* The primary method for the java service
*
* @param pipeline
* The IData pipeline
* @throws ServiceException
*/
public static final void
orderStatus_checkStatus(IData pipeline)
throws ServiceException {
Add source code for the primary Java service method here
}

// --- <<IS-BEGIN-SHARED-SOURCE-AREA>> ---
Add shared code here
// --- <<IS-END-SHARED-SOURCE-AREA>> ---
}
Final “}”
}
Related Topics
Protected Sections of a Java Service
Editable Sections of a Java Service