hi all
i am trying to create web service which will fetch all the web dynpro objects deployeed on a particular WAS.
i have created Web Service using plain java class
my java class is :
package sap.com;
import com.sap.tc.webdynpro.services.sal.deployment.api.IWDDeployableObject;
import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObject;
import com.sap.tc.webdynpro.services.sal.deployment.api.WDSharingAccessException;
public class DeployableClass {
public static String getDeplyoableObjects(String args) {
String str= "";
final IWDDeployableObject root = WDDeployableObject.getDeployableObject("sap.com/tcwddispwda");
try{
final IWDDeployableObject[] all = root.isReferencedByObjects();
str = String.valueOf(all.length);
}catch(WDSharingAccessException e){
str = e.toString();
}
return str;
}
}
but when i create web service out of this java class and after deployment run that web service it gives me the foll. error : <b>com/sap/tc/webdynpro/services/sal/deployment/api/WDSharingAccessException</b>
the same code runs perfectly when wrriten in web dynpro application but not in java class..
can any one suggest solution for this problem
thanks n regards
sheetal