public IDataStore load(IDataReader dataReader) {
IDataStore dataStore = null;
String resultXML="";
IWsConnectorServiceLocator locator = new IWsConnectorServiceLocator();
IWsConnector connector=null;
URL addressToCall=null;
try{
addressToCall=new URL(address);
}
catch (Exception e) {
throw new SpagoBIRuntimeException("Invalid URL [" + address + "]", e);
}
try {
connector = locator.getWSDataSetService(addressToCall);
} catch (ServiceException e) {
throw new SpagoBIRuntimeException("DataSetService not available", e);
}
// Add the profile Attributes
try {
parameters = addProfileAtributes(parameters);
} catch (Exception e) {
throw new SpagoBIRuntimeException("An error occurred while resolving profile attributes", e);
}
try {
resultXML=connector.readDataSet(address, parameters, operation);
} catch (RemoteException e) {
throw new SpagoBIRuntimeException("DataSetService not available", e);
}
try {