Project

General

Profile

« Previous | Next » 

Revision 6880

serialize the Identifier for the systemMetadata being registered
https://redmine.dataone.org/issues/2204

View differences:

src/edu/ucsb/nceas/metacat/restservice/CNResourceHandler.java
963 963
     * @throws IllegalAccessException
964 964
     * @throws InstantiationException
965 965
     */
966
    protected Identifier registerSystemMetadata(String pid)
966
    protected void registerSystemMetadata(String pid)
967 967
            throws ServiceFailure, InvalidRequest, IOException,
968 968
            FileUploadException, JiBXException, NotImplemented, NotAuthorized,
969 969
            InvalidSystemMetadata, InstantiationException,
......
980 980
        Identifier retGuid = CNodeService.getInstance(request)
981 981
                .registerSystemMetadata(session, guid, systemMetadata);
982 982

  
983
        OutputStream out = response.getOutputStream();
983 984
        response.setStatus(200);
984 985
        response.setContentType("text/xml");
985
        return retGuid;
986
        
987
        TypeMarshaller.marshalTypeToOutputStream(retGuid, out);
986 988

  
987 989
    }
988 990

  

Also available in: Unified diff