This commit is contained in:
Lucio Lelii 2008-10-09 14:24:14 +00:00
parent b841833fed
commit 1c4eafb06a
2 changed files with 11 additions and 9 deletions

View File

@ -10,7 +10,7 @@
<Packages>
<Main>
<Name>IS-Registry-service</Name>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<Mandatory level="VO"/>
<Shareable level="VO"/>
<GHNRequirements>
@ -21,9 +21,10 @@
<Service>
<Class>InformationSystem</Class>
<Name>IS-Registry</Name>
<Version>1.0.0</Version>
</Service>
<Package>IS-Registry-stubs</Package>
<Version>1.0.0</Version>
<Version>1.0.2</Version>
<Scope level="GHN"/>
<Optional>false</Optional>
</Dependency>
@ -42,7 +43,7 @@
</Main>
<Software>
<Name>IS-Registry-stubs</Name>
<Version>1.0.0</Version>
<Version>1.0.2</Version>
<MultiVersion value="true"/>
<Mandatory level="GHN"/>
<Shareable level="VO"/>

View File

@ -21,6 +21,7 @@ import org.gcube.common.core.resources.GCUBEService;
import org.gcube.common.core.state.GCUBEWSResource;
import org.gcube.common.core.utils.logging.GCUBELog;
import org.gcube.informationsystem.registry.impl.RegistryFactory;
import org.gcube.informationsystem.registry.impl.contexts.ProfileContext;
import org.gcube.informationsystem.registry.impl.contexts.ServiceContext;
import org.globus.wsrf.ResourceException;
import org.globus.wsrf.Topic;
@ -74,15 +75,15 @@ public class ProfileResource extends GCUBEWSResource {
try {
resource.store(writer);
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
StringReader reader = new StringReader(writer.toString().substring(writer.toString().indexOf("?>")+2, writer.toString().length()));
InputSource source = new InputSource();
source.setEncoding("UTF-8");
source.setCharacterStream(reader);
System.out.println("-----------"+source.getCharacterStream());
InputSource source = new InputSource(reader);
dom =builder.parse(source);
} catch (Exception e1) {
throw new ResourceException(e1);
@ -157,7 +158,7 @@ public class ProfileResource extends GCUBEWSResource {
* @return the Resource QName
*/
private QName generateQName() {
return QName.valueOf(this.getID().toString());
return new QName(ProfileContext.getContext().getNamespace(), NotificationProfileRP.toString()+this.getID().getValue());
}
public GCUBEResource getGCubeResource() {