cancel
Showing results for 
Search instead for 
Did you mean: 

web service client 3.2

mspatil
Champ in-the-making
Champ in-the-making
Hi,
Can anyone please help me in understanding CML
also the the various parameters to be passed while using it
Actually I am developing java client to access alfresco repository's all features (simple but as powerful as alfresco web client)
6 REPLIES 6

mspatil
Champ in-the-making
Champ in-the-making
I get this error when I try to run my test client in eclipse
Please help..

- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/security/Init
   at org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:271)
   at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:296)
   at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:305)
   at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:93)
   at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:168)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.update(RepositoryServiceSoapBindingStub.java:986)
   at org.kennovation.sample.CreateFolder.main(CreateFolder.java:30)
Caused by: java.lang.ClassNotFoundException: org.apache.xml.security.Init
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   … 16 more

openpj
Elite Collaborator
Elite Collaborator
To implement a java client using Alfresco Web Service Client JAR you need to add all the dependencies that you'll find in the RemoteAPI project (Alfresco SDK 3.2).

In this case your exception means that the Alfresco Web Service Client Stub (JAR) doesn't find one of these dependencies required, I think this is xmlsec.jar

Hope this helps.

mspatil
Champ in-the-making
Champ in-the-making
Thanks OpenPj..
its working now.
Now what path should I mention in reference in order to let other user create folder or content (apart from admin)?

mspatil
Champ in-the-making
Champ in-the-making
Hi all,
I would like to know whether I can use alfresco content mgmt web services and cmis web services together or not?
and also how to add SOAP authentication header?
Please throw some light on these.

Thanks and regards,
mspatil

mspatil
Champ in-the-making
Champ in-the-making
Hi,
I want to display directory structure of alfresco using a web service client in java.
I am able to get the reference. How can I get the names of nodes as they appear in repository
Please help

regards,
mspatil

mspatil
Champ in-the-making
Champ in-the-making
Hi all,
can anyone please post a simple cmis web service client program in java?
I am bit struggling with it.

regards,
mspatil