valia.tsagkalidou 2008-10-20 22:16:14 +00:00
parent c6e42a5d4b
commit 3e381d5793
1 changed files with 10 additions and 7 deletions

View File

@ -19,7 +19,8 @@ import org.gcube.vremanagement.softwarerepository.stubs.GetMessage;
import org.gcube.vremanagement.softwarerepository.stubs.ListScopedPackagesMessage;
import org.gcube.vremanagement.softwarerepository.stubs.ListScopedPackagesMessageScope;
import org.gcube.vremanagement.softwarerepository.stubs.SoftwareRepositoryPortType;
import org.gcube.vremanagement.softwarerepository.stubs.StoreMessage;
import org.gcube.vremanagement.softwarerepository.stubs.Store;
import org.gcube.vremanagement.softwarerepository.stubs.StoreItem;
import org.gcube.vremanagement.softwarerepository.stubs.service.SoftwareRepositoryServiceAddressingLocator;
import com.sun.org.omg.SendingContext.CodeBasePackage.URLSeqHelper;
@ -114,12 +115,14 @@ public class SoftwareRepository implements SoftwareRepositoryI{
SoftwareRepositoryPortType srPort = getSRPortType();
String[] scopes = new String[1];
scopes[0] = session.getScopeName();
StoreMessage storeMsg = new StoreMessage();
storeMsg.setDescription(description);
storeMsg.setScopes(scopes);
storeMsg.setServiceClass(serviceClass);
storeMsg.setServiceName(serviceName);
storeMsg.setServiceVersion(serviceVersion);
Store storeMsg = new Store();
StoreItem[] storeMessage = new StoreItem[1];
storeMessage[0].setDescription(description);
storeMessage[0].setScopes(scopes);
storeMessage[0].setServiceClass(serviceClass);
storeMessage[0].setServiceName(serviceName);
storeMessage[0].setServiceVersion(serviceVersion);
storeMsg.setStoreMessage(storeMessage);
try {
return srPort.store(storeMsg);
} catch (GCUBEFault e) {