AnsweredAssumed Answered

Webservie client with Axis1

Question asked by silvia1983 on Apr 12, 2010
Latest reply on Apr 22, 2010 by silvia1983
Hi!

I'm trying to use the method createDocument of webservice ObjectService but i always get the same exception:

(400)Petici�n incorrecta

If instead of local Alfresco, try the public Alfresco on the web ("http://cmis.alfresco.com:80/service/cmis") the answer is 'This method is not allowed'

The way to connect to the service is that I use is:

ObjectServiceLocator servLocator = new ObjectServiceLocator();
Object endpoint = "http://localhost:8080/service/cmis";
Object port = "ObjectServicePort";
servLocator.setEndpointAddress(port.toString(),endpoint.toString());
      
ObjectServicePortBindingStub stub = null;
CreateDocumentResponse response = null;
try{
     stub = (ObjectServicePortBindingStub)servLocator
         .getPort(ObjectServicePortBindingStub.class);
     stub.setUsername("admin");
     stub.setPassword("admin");
     response = stub.createDocument(parameters);

¿Anyone can help me with this problem? Because i'm not able to do anything with Alfresco's services yet and I need it

Thank you

Outcomes