From 3e381d5793093a0c7574337c955fbf99d1b26423 Mon Sep 17 00:00:00 2001 From: "valia.tsagkalidou" Date: Mon, 20 Oct 2008 22:16:14 +0000 Subject: [PATCH] git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@5135 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../vremanagement/impl/SoftwareRepository.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/org/gcube/application/framework/core/vremanagement/impl/SoftwareRepository.java b/src/org/gcube/application/framework/core/vremanagement/impl/SoftwareRepository.java index 7b76054..0e79b88 100644 --- a/src/org/gcube/application/framework/core/vremanagement/impl/SoftwareRepository.java +++ b/src/org/gcube/application/framework/core/vremanagement/impl/SoftwareRepository.java @@ -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) {