cancel
Showing results for 
Search instead for 
Did you mean: 

j'essaie de consommer les services d'alfresco (RepositoryService),...

tegyat
Champ in-the-making
Champ in-the-making
Bonjour,
j'essaie de consommer les services d'alfresco (RepositoryService), mais je n'y arrive pas, j'ai un probleme d'authentification.
__WSDoAllReceiver: Request does not contain required Security header
Que dois je faire?
– j'utilise les classes proposées par alfresco (j'ai essayé la génération des classes à partir des services çà à marcher pour Authentication mais pas pour les autres).
24 juil. 2007 09:55:00 org.apache.axis.utils.JavaUtils isAttachmentSupported
ATTENTION: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
WSDLException (at /wsdl:definitions/wsdl:types/schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at '../wsdl/headers.xsd', r
elative to 'http://localhost:8080/alfresco/api/RepositoryService?wsdl'.: no content-type: java.net.UnknownServiceException: no content-type
        at java.net.URLConnection.getContentHandler(Unknown Source)
        at java.net.URLConnection.getContent(Unknown Source)
        at java.net.URL.getContent(Unknown Source)
        at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)

        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:516)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:495)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Unknown Source)

        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:516)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:495)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Unknown Source)
3 REPLIES 3

dewi
Champ in-the-making
Champ in-the-making
Même problème de Security Header:
// test de login/mdp
      try {
         // on prépare l'EngineConfiguration
         EngineConfiguration config = AuthenticationUtils
         .getEngineConfiguration();

         // Get a reference to the AuthenticationService
         AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub) new AuthenticationServiceLocator()
               .getAuthenticationService();

         // Start the session
         AuthenticationResult resultat = authenticationService.startSession(
               lgn, psw);
         String ticket = resultat.getTicket();
         //on récupère l'username
         String username = resultat.getUsername();
         
         // Get a reference to the AdministrationService
         AdministrationServiceSoapBindingStub administrationService = (AdministrationServiceSoapBindingStub) new AdministrationServiceLocator()
         .getAdministrationService();
         
         UserDetails userDetails = administrationService.getUser(username);

         NamedValue[] properties = userDetails.getProperties();
L'erreur survient lors de la ligne en gras.

belamrani
Champ in-the-making
Champ in-the-making
Bonjour,

Je viens de me mettre à Alfresco et j'essai d'utiliser les web services proposés. J'ai le même problème : seul authentication marche.
Avez-vous trouvé une solution ?

Merci de votre aide

pdubois
Champ on-the-rise
Champ on-the-rise
Bonjour,

Quelle version d’Alfresco utilisez vous ?

Avez vous utilisé la librairie « client » pour les WebServices Alfresco. Cette librairie est fournie avec le SDK Alfresco (http://wiki.alfresco.com/wiki/Alfresco_SDK).

Regargez l’exemple livré avec « SDK FirstWebServiceClient ».
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.