YourServiceName obj=(YourServiceName) PortalRuntime.getRuntimeResources().getService(YourServiceName.KEY);
For What this KEY is mentioned.
From where we will get this key.
Please let me know.
Thanks in Advance.
When you use wsdl in your portal application, the NWDS by default it will create one interface and one java program in your project. You just look into your application, there you can see the src.api and src.core folders. Just check under the src.api, you will see the interface with the KEY value and in the src.core, you can find the java implementation program. In this case, you are not going to give the KEY value. So no need worry about this KEY value. Suppose, if you want to give the KEY value, goto the interface and change the KEY value as your wish, but it should be unique value, say for example, <b>"com.webservice.componentName"</b>.