String alfrescoWsUrl = "http://localhost:8080/alfresco/api";
WebServiceFactory.setEndpointAddress(alfrescoWsUrl);
AuthenticationUtils.startSession("admin", "admin");
…
…
AuthenticationUtils.endSession();
Alfresco espone diversi WSDL come servizi, per ogni servizio esiste un WSDL: RepositoryService, NodeService, etc…<bean id="nome_classe" class="org.alfresco.webservice.ECCETERA_ECCETERA" >
<property name="workflowServiceImpl">
<ref bean="nomeoggetto"/>
</property>
</bean>
e che poi mi devo creare un file (ma non ho capito con che estensione e in che cartella di alfresco salvare tale file) in cui implemento la classe "nome_classe" dove uso i metodi che vorrei fossero disponbili tipo:
import org.alfresco.webservice.content.Content;
import org.alfresco.webservice.content.ContentServiceSoapBindingStub;
import org.alfresco.webservice.repository.UpdateResult;
import org.alfresco.webservice.types.*;
import org.alfresco.webservice.util.AuthenticationUtils;
import org.alfresco.webservice.util.Constants;
import org.alfresco.webservice.util.Utils;
import org.alfresco.webservice.util.WebServiceFactory;
import java.io.File;
import static java.io.File.separatorChar;
import java.io.FileInputStream; import java.io.IOException;
import java.io.InputStream;
import java.util.*;
String alfrescoWsUrl = "http://localhost:8080/alfresco/api";
WebServiceFactory.setEndpointAddress(alfrescoWsUrl);
AuthenticationUtils.startSession("admin", "admin");
public nome_classe() {
//corpo della classe
}
AuthenticationUtils.endSession();
è giusto?
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.