[Building Sakai] Problem when site was copied

Wellington Santos wellington at wbsystem.com.br
Tue Aug 4 11:15:42 PDT 2009


Hi,

Some times ago I sent an e-mail asking how could I did copy of site,
however Steve sent me a link which I could call a webservice. So, I did
it. 
Today I was testing the webservice with 2 sites and the first copy all
contents and second don't work.
Is there any permission that I can change on sakai to do that?

My java class is working like:
                 Call nc = (Call) service.createCall();
                 nc.setTargetEndpointAddress(_url +
"/sakai-axis/SakaiScript.jws?wsdl");	
		nc.removeAllParameters();
		nc.setOperationName("copySite");
		nc.addParameter("sakai_session",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("siteidtocopy",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("newsiteid",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("title",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("description",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("shortdesc",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("iconurl",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("infourl",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("joinable",XMLType.XSD_BOOLEAN, ParameterMode.IN);
		nc.addParameter("joinerrole",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("published",XMLType.XSD_BOOLEAN, ParameterMode.IN);
		nc.addParameter("publicview",XMLType.XSD_BOOLEAN, ParameterMode.IN);
		nc.addParameter("skin",XMLType.XSD_STRING, ParameterMode.IN);
		nc.addParameter("type",XMLType.XSD_STRING, ParameterMode.IN);
    		nc.setReturnType(XMLType.XSD_STRING);
                nc.invoke(new Object [] { 
					sakai_session, siteidtocopy, newsiteid, title, description, 
					null, null, null, false, joinerrole, 
					true, false, skin, type });

    I think there is something strange because the first (Word with id
081080) works and second (Excel with id 081064) doesn't. 
    Anyone have seen the problem as mine?
    
Thanks a lot for your help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090804/29b01b3a/attachment.html 


More information about the sakai-dev mailing list