Hi Naveen,
not quite sure what your exact question is, but I will try to sched some light on this:
A java service is just a method in a java class.
The service is stored in a node.ndf (the signature) and a java.frag (the implementation) file.
The class also contains informations from the node.idf of the folder, where the services are located.
In this file is the shared code stored as well as the import-statements for the class.
When opening a Java Service in Designer it will show the complete resulting java source file, which contains the shared part as well as all java services in this folder, but only the shared part and the selected java service will be editable.
See Service Development Help for further informations.
If you have more qeustions regarding this provide a more detailed description of the issues you are encountering.
Regards,
Holger
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services