AnsweredAssumed Answered

quand j'essaie d'exploiter les exemples de client...

Question asked by tegyat on Jul 24, 2007
Bonjour,
quand j'essaie d'exploiter les exemples de client des ws proposés avec alfresco (source) je me trouve avec  l'erreur suivante
>java WebServiceSample1

24 juil. 2007 10:33:14 org.apache.axis.utils.JavaUtils isAttachmentSupported
ATTENTION: Unable to find required classes (javax.activation.DataHandler and jav
ax.mail.internet.MimeMultipart). Attachment support is disabled.
24 juil. 2007 10:33:16 org.apache.axis.client.Call invoke
GRAVE: Exception:
org.xml.sax.SAXException: Invalid element in org.alfresco.webservice.authenticat
ion.AuthenticationResult - sessionid
        at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeseri
alizer.java:258)
        at org.apache.axis.encoding.DeserializationContext.startElement(Deserial
izationContext.java:1035)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
va:165)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
t.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2467)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindi
ngStub.startSession(AuthenticationServiceSoapBindingStub.java:187)
        at org.alfresco.webservice.util.AuthenticationUtils.startSession(Authent
icationUtils.java:70)
        at WebServiceSample1.main(WebServiceSample1.java:41)
Exception in thread "main" org.alfresco.webservice.util.WebServiceException: Err
or starting session.
        at org.alfresco.webservice.util.AuthenticationUtils.startSession(Authent
icationUtils.java:85)
        at WebServiceSample1.main(WebServiceSample1.java:41)
Caused by: org.xml.sax.SAXException: Invalid element in org.alfresco.webservice.
authentication.AuthenticationResult - sessionid
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.client.Call.invoke(Call.java:2470)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindi
ngStub.startSession(AuthenticationServiceSoapBindingStub.java:187)
        at org.alfresco.webservice.util.AuthenticationUtils.startSession(Authent
icationUtils.java:70)
        … 1 more
Caused by: org.xml.sax.SAXException: Invalid element in org.alfresco.webservice.
authentication.AuthenticationResult - sessionid
        at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeseri
alizer.java:258)
        at org.apache.axis.encoding.DeserializationContext.startElement(Deserial
izationContext.java:1035)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
va:165)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
t.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2467)
        … 5 more
Avez vous des idées.
merci d'avance

Outcomes