webMethods 10.2 | Service Development Help | Building Java Services | Editing an Existing Java Service
 
Editing an Existing Java Service
Use the Designer Java service editor to edit an existing Java service. You can use the Designer Java service editor to edit Java services that were created in Designer or Developer. Additionally, you can use Designer to edit Java services you created with your own IDE, provided that you properly commented them as described in Building Java Services in Your Own IDE and Adding Comments to Your Java Code for the jcode Utility.
Before you can edit an existing Java service, make sure that:
*The Integration Server on which you the Java service resides is running and that it is connected to Designer.
*You have the Java service locked for edit. If you attempt to edit a Java service that you do not have locked for edit, you can still open it in the Java service editor. However, the source code, properties, inputs, and outputs will be read only.
*If you want to use Unicode characters in the Java service, change the Text file encoding preference. To do so, select Window > Preferences > General > Workspace and for Text file encoding clear Default (Cp1252), select Other, and then select or type a new encoding.
* To edit an existing Java service
1. Ensure the Designer is using the Service Development perspective. If not, switch to it by selecting Window > Open Perspective > Service Development.
2. Double click the Java service in the Package Navigator view to open it.
3. Update the input parameters and output parameters for the Java service on the Input/Output tab. For more information, see About the Service Signature.
4. Modify service properties using the Properties view. For more information, see:
*About Service Run-Time Parameters
*About Automatic Service Retry
*About Service Auditing
*About Universal Names for Services or Document Types
*About Service Output Templates.
5. Modify the Java code on the Source tab.
You can use the webMethods Integration Server Java API in your service. For more information, see the webMethods Integration Server Java API Reference.
6. Select File > Save.
Designer compiles the Java service on Integration Server and displays compilation error messages from the server in a pop up window. Designer also writes the error messages to the Designer log file making them visible within the Error Log View.
Designer also compiles the Java service locally in the Service Development Project. Additionally, if the workspace preference Build Automatically is selected, Designer also rebuilds other classes in the Service Development Project at the same time. Designer adds compilation errors from the local compilation to the Problems view. You can open Problems view by clicking Window > Show View > Problems. To view the line of code that caused the error, double click on the error in the Problems view and Designer shifts focus to the Java service editor, with the cursor positioned at the line of code that caused the error.
The first time you edit a Java service in your workspace, Designer adds a Java class associated with the Java service to a Service Development Project in your local workspace. If an appropriate Service Development Project that corresponds to the service’s IS package does not yet exist, Designer creates one for the service. For more information, see Service Development Projects in the Local Workspace.
Notes about Creating and Editing Java Services in Designer
Overview of Building Java Services
How Java Services Are Organized on Integration Server
Java Service Editor
Service Development Projects in the Local Workspace
Package and Folder Requirements
About the Service Signature
Adding Classes to the Service Development Project
Compiling a Java Service
Generating Java Code from Service Input and Output Parameters

Copyright © 2017-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release